1. login as root
[fedo@dhcppc6 ~]$ su root
Password:
[root@dhcppc6 fedo]#
2. Stop network manager
[root@dhcppc6 fedo]# service NetworkManager stop
Stopping NetworkManager daemon: [ OK ]
3. stop neworkmanger from startup
[root@dhcppc6 fedo]# chkconfig NetworkManager off
4. Start the network service at boot time
chkconfig network on
5.
[root@dhcppc6 network-scripts]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=static
BROADCAST=192.168.1.255
IPADDR=192.168.1.89
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
ONBOOT=yes
6.
[root@dhcppc6 network-scripts]# cat /etc/resolv.conf
nameserver 8.8.8.8
7.
[root@dhcppc6 network-scripts]# service network restart
Shutting down interface eth0: [ OK ]
Shutting down loopback interface: [ OK ]
Bringing up loopback interface: [ OK ]
Bringing up interface eth0: Determining if ip address 192.168.1.89 is already in use for device eth0...
[ OK ]
[root@dhcppc6 network-scripts]#
8.
[root@dhcppc6 network-scripts]# ping www.google.com
PING www.google.com (74.125.236.211) 56(84) bytes of data.
64 bytes from maa03s17-in-f19.1e100.net (74.125.236.211): icmp_seq=1 ttl=56 time=27.3 ms
64 bytes from maa03s17-in-f19.1e100.net (74.125.236.211): icmp_seq=2 ttl=56 time=26.5 ms
64 bytes from maa03s17-in-f19.1e100.net (74.125.236.211): icmp_seq=3 ttl=56 time=27.2 ms
64 bytes from maa03s17-in-f19.1e100.net (74.125.236.211): icmp_seq=4 ttl=56 time=26.0 ms
^C
--- www.google.com ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3418ms
rtt min/avg/max/mdev = 26.034/26.789/27.334/0.570 ms
[fedo@dhcppc6 ~]$ su root
Password:
[root@dhcppc6 fedo]#
2. Stop network manager
[root@dhcppc6 fedo]# service NetworkManager stop
Stopping NetworkManager daemon: [ OK ]
3. stop neworkmanger from startup
[root@dhcppc6 fedo]# chkconfig NetworkManager off
4. Start the network service at boot time
chkconfig network on
5.
[root@dhcppc6 network-scripts]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=static
BROADCAST=192.168.1.255
IPADDR=192.168.1.89
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
ONBOOT=yes
6.
[root@dhcppc6 network-scripts]# cat /etc/resolv.conf
nameserver 8.8.8.8
7.
[root@dhcppc6 network-scripts]# service network restart
Shutting down interface eth0: [ OK ]
Shutting down loopback interface: [ OK ]
Bringing up loopback interface: [ OK ]
Bringing up interface eth0: Determining if ip address 192.168.1.89 is already in use for device eth0...
[ OK ]
[root@dhcppc6 network-scripts]#
8.
[root@dhcppc6 network-scripts]# ping www.google.com
PING www.google.com (74.125.236.211) 56(84) bytes of data.
64 bytes from maa03s17-in-f19.1e100.net (74.125.236.211): icmp_seq=1 ttl=56 time=27.3 ms
64 bytes from maa03s17-in-f19.1e100.net (74.125.236.211): icmp_seq=2 ttl=56 time=26.5 ms
64 bytes from maa03s17-in-f19.1e100.net (74.125.236.211): icmp_seq=3 ttl=56 time=27.2 ms
64 bytes from maa03s17-in-f19.1e100.net (74.125.236.211): icmp_seq=4 ttl=56 time=26.0 ms
^C
--- www.google.com ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3418ms
rtt min/avg/max/mdev = 26.034/26.789/27.334/0.570 ms
No comments:
Post a Comment