[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: default route question.



On Fri, 5 Sep 2003, KroNiC~BSD wrote:

[snip]

> TraNsLaToR# ifconfig ep2
> ep2: flags=8863<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST> mtu
> 1500
>         address: 00:60:97:22:5c:3c
>         media: Ethernet 10baseT
>         inet6 fe80::260:97ff:fe22:5c3c%ep2 prefixlen 64 scopeid 0x6
>         inet 12.210.147.136 netmask 0xfffff800 broadcast 255.255.255.255
>

> TraNsLaToR# route show
> Routing tables
>
> Internet:
> Destination      Gateway            Flags
> default          12-210-144-1.clien UG

[snip]

> how can my default route be
>
> default          12-210-144-1.clien UG
>
> when my address on the ex. interface is not in the same subnet?

It is on the same subnet.

> if my ex. interface addy is
>
> 12.210.147.136 ...should not my default GW be on the 12.210.147.0
> network.

Not necessarily.

> i would have thought it would be .1 as in 12.210.147.1
>
> anyways am i reading this wrong?

>From above:
inet 12.210.147.136 netmask 0xfffff800 broadcast 255.255.255.255

netmask is 0xfffff800. That's 255.255.248.0. The subnet includes
12.210.144.0 through 12.210.151.255 (including network and broadcast
addresses).

$PORTS/net/cidr is, imho, a useful tool for this kind of thing, if
you don't feel like doing the math yourself.

hamon:~$ cidr -q 12.210.147.136 -h fffff800

ip address..........:  12.210.147.136
netmask.............:  255.255.248.0

network address.....:  12.210.144.0
broadcast address...:  12.210.151.255

please wait while host addresses are validated...

total host addresses:  2046

A Google search including netmask and subnet might prove enlightening.

[ Dave Taira <bodhi@hagakure.org>                2003.09.05/16:58:22 PDT ]
[ Morlock for Hire                                                       ]
[ Darn! A perfectly good brain...wasted.              --"The Iron Giant" ]