>>>>> "PB" == Philip Blundell <[EMAIL PROTECTED]> writes:

PB> If your netmask is 255.255.255.252 then 192.168.130.54 is not a
PB> network address, it's a host address. If that's what you actually
PB> want then just remove `-net' from that line. Otherwise either the
PB> netmask or the address is in error.

192.168.130.54 is indeed my host.

However:

# route add -host 192.168.130.54 netmask 255.255.255.252 gw 192.168.130.53
route: netmask 00000003 doesn't make sense with host route
Usage: route [-nNvee] [-FC] [Address_families]  List kernel routing tables
       route {-V|--version}                  Display command version and exit.
       route {-h|--help} [Address_family]    Usage Syntax for specified AF.
       route [-v] [-FC] {add|del|flush} ...  Modify routing table for AF.

  Address_families: inet,inet6,ddp,ipx,netrom,ax25
        specify AF: -A af1,af2..  or  --af1 --af2  or  af_route
# 

The script ifup-routes contains:

        grep "^$1 " /etc/sysconfig/static-routes | while read device args; do
            /sbin/route add -$args $device
        done

and static-routes contains:

eth0 net 192.168.130.54 netmask 255.255.255.252 gw 192.168.130.53

One minor detail is that apart for those spurious messages at boot
time... it works.

# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.130.52  0.0.0.0         255.255.255.252 U     0      0        1 eth0
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        1 lo
0.0.0.0         192.168.130.53  0.0.0.0         UG    0      0       16 eth0
# ifconfig
lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Bcast:127.255.255.255  Mask:255.0.0.0
          UP BROADCAST LOOPBACK RUNNING  MTU:3584  Metric:1
          RX packets:7588 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7588 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 

eth0      Link encap:Ethernet  HWaddr 00:20:AF:C6:86:37  
          inet addr:192.168.130.54  Bcast:192.168.130.55  Mask:255.255.255.252
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:38 errors:0 dropped:0 overruns:0 frame:0
          TX packets:56 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 
          Interrupt:10 Base address:0x300 

# 

So what is my network address, given that 54 is my host, 53 my
gateway, 55 the broadcast, and supposing the netmask is OK?

I guess 52...
This seems to be OK. Now, I need to reboot!

Thanks for your help, and thanks to everybody else who kindly answered
my mails!
Marc

-- 
Marc Girod                Hiomo 5/1          Voice:  +358-9-511 23746
Nokia Telecommunications  P.O. Box 320       Mobile: +358-40-569 7954
NWS/NMS/NMS for Data      00045 NOKIA Group  Fax:    +358-9-511 23580
                          Finland            [EMAIL PROTECTED]
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]

Reply via email to