Setting IP address on Vector Linux
On Vector Linux, to edit the network interface, eth0 type:
#vi /etc/rc.d/rc.inet1
## The settings
DEVICE=’eth0′
DHCP=’no’
IPADDR=’172.16.0.1′
NETMASK=’255.255.0.0′
GATEWAY=’172.16.0.2′
PROBE=’no’
Save and quit. Then you need to restart the network services.
root:# /etc/rc.d/./rc.inet1 stop
Stopping network eth0 …
root:# /etc/rc.d/./rc.inet1 start
Ping the Vector Linux
root@ismail-laptop:~# ping 172.16.0.1
PING 172.16.0.1 (172.16.0.1) 56(84) bytes of data.
64 bytes from 172.16.0.1: icmp_seq=1 ttl=64 time=1.24 ms
64 bytes from 172.16.0.1: icmp_seq=2 ttl=64 time=0.185 ms
Leave a comment