- ifconfig: I got:
- inet addr: 74.221.222.152
- Bcast: 74.221.222.159
- Mask: 255.255.255.248
- => Available = 255 - 248 = 7 + 1 = 8
- 2 * 2 * 2 = 8 (we have 3 numbers 2)
- => Available bits: 3
- Netmask bits: 32 - 3 = 29
- Go to this website and make the same:
- We got IP addresses:
- 74.221.222.153
- 74.221.222.154
- 74.221.222.155
- 74.221.222.156
- 74.221.222.157
- 74.221.222.158
- sudo vim /etc/network/interfaces
- post-up ifconfig eth1:0 74.221.222.153 netmask 255.255.255.248
- post-up ifconfig eth1:1 74.221.222.154 netmask 255.255.255.248
- ...
- Save and restart networking
- Test it with: ifconfig
- Done!
Take care of it, because you could not access your server if it go wrong.
Good luck!
No comments:
Post a Comment