Quote:
|
Originally Posted by falko
Can you try this in /etc/sysconfig/network-scripts/ifcfg-eth0?
Code:
DEVICE=eth0
BOOTPROTO=static
BROADCAST=192.168.0.255
HWADDR=00:E0:4C:F1:A3:FE
IPADDR=192.168.0.3
NETMASK=255.255.255.0
NETWORK=192.168.0.0
ONBOOT=yes
GATEWAY=192.168.0.1
DEFAULTGATEWAY=192.168.0.1
Restart the network afterwards:
Code:
/etc/init.d/network restart
Your system should then have the IP address 192.168.0.3.
|
OK, I have it all except I still can't get to the internet? Check it out:
ssword:
[root@localhost frank]# /etc/init.d/network restart
Shutting down interface eth0: [ OK ]
Shutting down loopback interface: [ OK ]
Bringing up loopback interface: [ OK ]
Bringing up interface eth0: [ OK ]
[root@localhost frank]# ping 192.168.0.3
PING 192.168.0.3 (192.168.0.3) 56(84) bytes of data.
64 bytes from 192.168.0.3: icmp_seq=1 ttl=64 time=0.051 ms
64 bytes from 192.168.0.3: icmp_seq=2 ttl=64 time=0.049 ms
64 bytes from 192.168.0.3: icmp_seq=3 ttl=64 time=0.045 ms
64 bytes from 192.168.0.3: icmp_seq=4 ttl=64 time=0.043 ms
64 bytes from 192.168.0.3: icmp_seq=5 ttl=64 time=0.043 ms
64 bytes from 192.168.0.3: icmp_seq=6 ttl=64 time=0.046 ms
64 bytes from 192.168.0.3: icmp_seq=7 ttl=64 time=0.045 ms
64 bytes from 192.168.0.3: icmp_seq=8 ttl=64 time=0.051 ms
64 bytes from 192.168.0.3: icmp_seq=9 ttl=64 time=0.045 ms
64 bytes from 192.168.0.3: icmp_seq=10 ttl=64 time=0.044 ms
64 bytes from 192.168.0.3: icmp_seq=11 ttl=64 time=0.048 ms
64 bytes from 192.168.0.3: icmp_seq=12 ttl=64 time=0.044 ms
64 bytes from 192.168.0.3: icmp_seq=13 ttl=64 time=0.045 ms
64 bytes from 192.168.0.3: icmp_seq=14 ttl=64 time=0.048 ms
64 bytes from 192.168.0.3: icmp_seq=15 ttl=64 time=0.044 ms
64 bytes from 192.168.0.3: icmp_seq=16 ttl=64 time=0.043 ms
64 bytes from 192.168.0.3: icmp_seq=17 ttl=64 time=0.047 ms
64 bytes from 192.168.0.3: icmp_seq=18 ttl=64 time=0.049 ms
--- 192.168.0.3 ping statistics ---
18 packets transmitted, 18 received, 0% packet loss, time 16998ms
rtt min/avg/max/mdev = 0.043/0.046/0.051/0.004 ms
[root@localhost frank]#
root@localhost frank]# /sbin/route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 * 255.255.255.0 U 0 0 0 eth0
169.254.0.0 * 255.255.0.0 U 0 0 0 eth0
default 192.168.0.1 0.0.0.0 UG 0 0 0 eth0
[root@localhost frank]#
Recent comments
5 hours 33 min ago
12 hours 14 min ago
16 hours 4 min ago
17 hours 43 min ago
1 day 2 hours ago
1 day 11 hours ago
1 day 12 hours ago
1 day 15 hours ago
1 day 20 hours ago
1 day 20 hours ago