Andrew P. Billyard <andrew_billyard@alumni.removethisbit.uwaterloo.ca > wrote:
> AFTER:
> 6: eth1: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000
> link/ether 00:50:04:16:6f:5e brd ff:ff:ff:ff:ff:ff
> inet 192.168.1.25/24 brd 192.168.1.255 scope global eth1
That bit looks all right to my eyes.
> Now, if I execute the following
>
> ip addr flush dev eth1
> ip addr add 192.168.1.25 brd 192.168.1.255 dev eth1 label eth1
>
> (i.e., I specify ${IPADDR} rather than ${IPADDR}/${PREFIX}) everything
> works!
>
> Can anyone see the problem here? This networking is really new to me so
> I'm not even sure what I should be looking for. So,
I'm a newbie to the new iproute2 stuff (actually, less than a newbie).
What is the output of "ip addr list" after you have added the fixed
ip addr add ... command?
What do the routing tables say before and after? I imagine that would be
"ip route list"
> What is the significance of the "/24" in the IP address?
It's the network mask, actually, it's the number of 1's in the network
mask starting from the left, so it would be
255.255.255.0
Recall that each octet can be from 0 to 255, which is 8 bits. 24 is 3*8,
so therefore there are three whole octets with (binary) ones in them.
> Where can I turn it off?
Ideally, you shouldn't. File a bug report. Or just work around it until
its properly fixed.
> Should I turn it off?
Most software should be smart enough to recognise an address such as
192.168.x.x as a /24 network (Used to be called a C class network, and
could be told by the starting three or so bits.)
> Should it be a specific number?
Certainly, you can't expect to just make up numbers willy-nilly. 24 is
correct for you.
PS. Where does it go if you try using traceroute instead of ping?
--
Cameron Kerr
cameron.kerr@paradise.net.nz :
http://nzgeeks.org/cameron/
Empowered by Perl!