1. Temporary IP Settings:
Networks Useful to know the address, netmask, and broadcast without the manual count
# ifconfig eth0 192.168.10.1/29
Perform the command ifconfig eth0 to read IP configuration, then remember / write down
# ifconfig eth0
2. Permanent IP Settings:
# mcedit /etc/networks/interfaces
Existing row / lo (loopback 0):
auto l0
iface lo0 inet loopback
Add the following lines:
auto eth0
iface eth0 inet static
address 192.168.10.1
netmask 255,255,255,248
broadcast192.168.10.7
gateway 192.168.10.1
3. Restart the networking service:
#/etc/init.d/networking restart
No comments:
Post a Comment