Share |

2.11 Setip

Use this whenever you want to enter a fixed ip address for your network cards


setip <interface> | -h
This command sets the ip information of your network card(s)
Without an argument, it assumes your network card is eth0
'setip -h' shows the help output
Here 's what  the command does:

'setip eth1
Enter the IP-address for eth1:
Enter the subnet mask for eth1:
Enter the default gateway, <enter> for none:
Enter the IP-address of the DNS server you 'd like to use, <enter> for none:

Setting ipaddress on eth1
Setting default gateway to
Setting nameserver in /etc/resolv.conf'

Also read the online manpage on this:

Updated: July 28, 2010