[NTLUG:Discuss] what does these result mean?
Chris Cox
cjcox at acm.org
Thu Jun 5 11:49:33 CDT 2003
m m wrote:
> Hi All:
>
> I recently reboot the machine (use dhcp) and I get this from route -n
> command
>
> Kernel IP routing table
> Destination Gateway Genmask Flags Metric Ref Use
> Iface
> 192.168.1.1 0.0.0.0 255.255.255.255 UH 0 0 0
> eth1
> 12.237.96.128 0.0.0.0 255.255.255.255 UH 0 0 0
> eth0
> 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0
> eth1
> 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
> 0.0.0.0 12.237.96.129 0.0.0.0 UG 0 0 0
> eth0
>
> and I get this from ifconfig command:
>
> eth0 Link encap:Ethernet HWaddr 00:50:BA:F3:D3:06
> inet addr:12.237.96.141 Bcast:255.255.255.255
> Mask:255.255.255.128
> UP BROADCAST RUNNING MTU:1500 Metric:1
> RX packets:13610 errors:0 dropped:0 overruns:0 frame:0
> TX packets:8186 errors:0 dropped:0 overruns:0 carrier:0
> collisions:24 txqueuelen:100
> Interrupt:11 Base address:0xf8e0
> ...
>
> Questions here:
>
> I did run netconfig, and removed all the information I put before I
> reboot the box.
> why do i get a Destination IP 12.237.96.128 on route and get
> 12.237.96.141 on ifconfig command?
> so, what is my 'real' ip and gwtway? Does the route table correct?
> I used to get the same ip on both commands before.
>
I apologize for repeating the whole context... but it's because
of your new netmask. The eth0 in the route table identifies the
network part for the new network. You'll notice your netmask
in ifconfig.
Your ip is 12.237.96.141 on the 12.237.96.128 network.
(someday Linux will show CIDR and allow CIDR notation to
config these things.. might help make it more readable)
More information about the Discuss
mailing list