[CentOS] DSL battling rojter - help!
Mark
mhullrich at gmail.com
Sun Jul 18 19:54:03 UTC 2010
On Sun, Jul 18, 2010 at 10:31 AM, Cia Watson <ciamarie at my180.net> wrote:
>
> And on the above, the mask is: 255.255.255.255 I don't run dhclient or
> anything so I'm not sure where the config file is, but I'd suggest that
> in addition to what's already been suggested you probably want to change
> the above to have a subnet mask matching what comes up under the ifup,
> namely: 255.255.255.0
>
How, pls?
Latest effort:
[root at mhrichter mhr]# ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:1E:90:F3:D2:8D
inet addr:192.168.0.100 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::21e:90ff:fef3:d28d/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5576135 errors:5 dropped:0 overruns:0 frame:5
TX packets:3511245 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:7123318597 (6.6 GiB) TX bytes:414398292 (395.2 MiB)
Interrupt:58 Base address:0xc000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:33279 errors:0 dropped:0 overruns:0 frame:0
TX packets:33279 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:44053531 (42.0 MiB) TX bytes:44053531 (42.0 MiB)
sit0 Link encap:IPv6-in-IPv4
NOARP MTU:1480 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
vmnet8 Link encap:Ethernet HWaddr 00:50:56:C0:00:08
inet addr:172.16.212.129 Bcast:172.16.212.255 Mask:255.255.255.0
inet6 addr: fe80::250:56ff:fec0:8/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:59 errors:0 dropped:0 overruns:0 frame:0
TX packets:2304 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
[root at mhrichter mhr]# dhclient
Internet Systems Consortium DHCP Client V3.0.5-RedHat
Copyright 2004-2006 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
/sbin/dhclient-script: configuration for vmnet8 not found. Continuing
with defaults.
/etc/sysconfig/network-scripts/network-functions: line 78: vmnet8: No
such file or directory
Listening on LPF/vmnet8/00:50:56:c0:00:08
Sending on LPF/vmnet8/00:50:56:c0:00:08
Listening on LPF/eth0/00:1e:90:f3:d2:8d
Sending on LPF/eth0/00:1e:90:f3:d2:8d
Sending on Socket/fallback
DHCPDISCOVER on vmnet8 to 255.255.255.255 port 67 interval 5
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
DHCPOFFER from 172.16.212.254
DHCPREQUEST on vmnet8 to 255.255.255.255 port 67
DHCPOFFER from 192.168.0.1
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPACK from 192.168.0.1
bound to 69.234.42.7 -- renewal in 247 seconds.
[root at mhrichter mhr]# ping google.com
ping: unknown host google.com
[root at mhrichter mhr]# ping 192.168.0.1
PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.
>From 172.16.212.129 icmp_seq=2 Destination Host Unreachable
>From 172.16.212.129 icmp_seq=3 Destination Host Unreachable
>From 172.16.212.129 icmp_seq=4 Destination Host Unreachable
--- 192.168.0.1 ping statistics ---
4 packets transmitted, 0 received, +3 errors, 100% packet loss, time 3000ms
, pipe 3
[[ So why is it going through the vmnet8 device ?]]
[root at mhrichter mhr]# ip ro ls
172.16.212.0/24 dev vmnet8 proto kernel scope link src 172.16.212.129
69.234.42.0/24 dev eth0 proto kernel scope link src 69.234.42.7
default via 172.16.212.2 dev vmnet8
[[Why is the virtual network interface the default?]]
[root at mhrichter mhr]# ifconfig vmnet8 down
[root at mhrichter mhr]# ifc
eth0 Link encap:Ethernet HWaddr 00:1E:90:F3:D2:8D
inet addr:69.234.42.7 Bcast:69.234.42.255 Mask:255.255.255.0
inet6 addr: fe80::21e:90ff:fef3:d28d/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5576170 errors:5 dropped:0 overruns:0 frame:5
TX packets:3511277 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:7123321997 (6.6 GiB) TX bytes:414401782 (395.2 MiB)
Interrupt:66 Base address:0xc000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:33300 errors:0 dropped:0 overruns:0 frame:0
TX packets:33300 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:44055767 (42.0 MiB) TX bytes:44055767 (42.0 MiB)
sit0 Link encap:IPv6-in-IPv4
NOARP MTU:1480 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
vmnet8 Link encap:Ethernet HWaddr 00:50:56:C0:00:08
inet addr:172.16.212.129 Bcast:172.16.212.255 Mask:255.255.255.0
BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:69 errors:0 dropped:0 overruns:0 frame:0
TX packets:2414 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
[root at mhrichter mhr]# ip ro ls
69.234.42.0/24 dev eth0 proto kernel scope link src 69.234.42.7
[root at mhrichter mhr]# ping google.com
ping: unknown host google.com
[root at mhrichter mhr]# ping att.com
ping: unknown host att.com
[root at mhrichter mhr]# cat /etc/resolv.conf
; generated by /sbin/dhclient-script
search localdomain
nameserver 172.16.212.2
[Huh??]
If I kill the dhclient, shut down and restart eth0 and run dhclient
again, it still binds to vmnet8, which I thought I'd shut down above.
There is no dhclient.conf anywhere on the system – do I need to create
one? (Seems like it....)
So, how do I force the dhclient to use the DSL modem as its default
gateway and the route to the internet?
More information about the CentOS
mailing list