Posted by: isaraffee | April 10, 2010

Setting IP address on Vector Linux

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

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Categories

%d bloggers like this: