[CentOS] What on Centos is wiping out my eth0 IP address every 5 minutes?

Rock Rocksockdoc at gmail.com
Wed Jul 24 13:45:00 UTC 2013


On Tue, 23 Jul 2013 23:07:30 -0700, John R Pierce wrote:

> my N600 has great range.  mine is a wndr3700v3

Mine is the WNDR3400. 

It's in the center of the house and barely makes it to the 
front steps.

In contrast, the Nanobridge M2 can go for five miles, 
at least according to what I've read.

To garner a handle on this confusing "gateway" thing, 
I've run a few commands on CentOS while connected to that
home broadband router on the wlan0 card of the laptop:

This shows DHCP handed the laptop IP address 192.168.1.3:
$ ifconfig wlan0
=> wlan0 Link encap:Ethernet HWaddr 0A:2B:DC:7D:8E:AF
=> inet addr:192.168.1.3 Bcast:192.168.1.255 Mask:255.255.255.0
=> etc.

This shows the gateway is apparently set to the home broadband 
router IP address (which is 192.168.1.1):
$ route -n
=> Kernel IP routing table
=> Destination Gateway Genmask Flags Metric Ref Use Iface
=> 192.168.1.0 0.0.0.0 255.255.255.0 U 2 0 0 wlan0
=> 0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 wlan0
Where the gateway is 192.168.1.1 and it's up (U) 
and it's a gateway (G).

This shows the same information:
$ route (or netstat -r):
=> Kernel IP routing table
=> Destination Gateway Genmask Flags Metric Ref Use Iface
=> 192.168.1.0 * 255.255.255.0 U 2 0 0 wlan0
=> default 192.168.1.1 0.0.0.0 UG 0 0 0 wlan0

I'm not sure if this provides any additional value:
$ ip route show
=> 192.168.1.0/24 dev wlan0 proto kernel scope link src 192.168.1.3 metric 2
=> default via 192.168.1.1 dev wlan0 proto static

This shows I once messed with the gateway long ago 
(currently commented out):
$ cat /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=rock
#GATEWAY=192.168.1.1

Do I have any other Linux commands which will give me needed 
information before I start connecting to the Nanobridge M2?







More information about the CentOS mailing list