FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > CentOS > CentOS

 
 
LinkBack Thread Tools
 
Old 07-18-2010, 07:51 PM
Mark
 
Default DSL battling rojter - help!

On Sun, Jul 18, 2010 at 9:42 AM, Whit Blauvelt <whit@transpect.com> wrote:
>
> Generally when someone asks "What do you see" in a computer context, the
> right answer is to run the command and paste the results. We need, not your
> interpretation of the data - which you know is confused, right? - but the
> data itself.
>
Right now that's easier said than done - I fave to keep switching
between machines & connections, and the Win box fas a mixed dvorak
keybd....

However, pls see my next response....
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 07-18-2010, 07:54 PM
Mark
 
Default DSL battling rojter - help!

On Sun, Jul 18, 2010 at 10:31 AM, Cia Watson <ciamarie@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@mhrichter mhr]# ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:1E:90:F32: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@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@mhrichter mhr]# ping google.com
ping: unknown host google.com
[root@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@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@mhrichter mhr]# ifconfig vmnet8 down
[root@mhrichter mhr]# ifc
eth0 Link encap:Ethernet HWaddr 00:1E:90:F32: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@mhrichter mhr]# ip ro ls
69.234.42.0/24 dev eth0 proto kernel scope link src 69.234.42.7
[root@mhrichter mhr]# ping google.com
ping: unknown host google.com
[root@mhrichter mhr]# ping att.com
ping: unknown host att.com
[root@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?
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 07-21-2010, 10:01 PM
Mark
 
Default DSL battling rojter - help!

[SOLVED]

At least for the most part - the immediate solution was to set my
CentOS box to a static IP address and then connect it directly to the
modem.

Once that worked, I moved my machine's connection back to the router,
but since the router's WAN connection settings don't seem to work (at
all), I just plugged the modem and the Windows box into the router's
LAN ports. Once I gave the Windows box it's own static IP address as
well, both machines seem to be happy and can access the web through
the router-acting-as-a-switch.

Many thanks to JohnS for pointing and then guiding me in the right direction.

Mark
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 

Thread Tools




All times are GMT. The time now is 07:07 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org