route syntax

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

 



there are two computers, arrakis and caladan.  I'm trying to ping from
arrakis eth1, which is a D-Link NIC, to caladan, ignoring arrakis
eth0.

I believe that the problem is in the last line of route, so would like
to remove that line.  I might remove all mention of eth0, too.


[thufir@arrakis init.d]$ su -
Password:
[root@arrakis ~]# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.0.0     *               255.255.255.0   U     0      0        0 eth0
192.168.0.0     *               255.255.255.0   U     0      0        0 eth1
169.254.0.0     *               255.255.0.0     U     0      0        0 eth1
[root@arrakis ~]# route del 169.254.0.0 netmask 255.255.0.0
route: netmask 0000ffff doesn't make sense with host route
Usage: route [-nNvee] [-FC] [<AF>]           List kernel routing tables
      route [-v] [-FC] {add|del|flush} ...  Modify routing table for AF.

      route {-h|--help} [<AF>]              Detailed usage syntax for
specified AF.
      route {-V|--version}                  Display version/author and exit.

       -v, --verbose            be verbose
       -n, --numeric            don't resolve names
       -e, --extend             display other/more information
       -F, --fib                display Forwarding Information Base (default)
       -C, --cache              display routing cache instead of FIB

 <AF>=Use '-A <af>' or '--<af>'; default: inet
 List of possible address families (which support routing):
   inet (DARPA Internet) inet6 (IPv6) ax25 (AMPR AX.25)
   netrom (AMPR NET/ROM) ipx (Novell IPX) ddp (Appletalk DDP)
   x25 (CCITT X.25)
[root@arrakis ~]# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:0A:E6:A0:24:27
         inet addr:192.168.0.2  Bcast:192.168.0.255  Mask:255.255.255.0
         inet6 addr: fe80::20a:e6ff:fea0:2427/64 Scope:Link
         UP BROADCAST MULTICAST  MTU:1500  Metric:1
         RX packets:0 errors:0 dropped:0 overruns:0 frame:0
         TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:1000
         RX bytes:0 (0.0 b)  TX bytes:476 (476.0 b)
         Interrupt:5 Base address:0xd400

eth1      Link encap:Ethernet  HWaddr 00:0D:88:37:FA:22
         inet addr:192.168.0.1  Bcast:192.168.0.255  Mask:255.255.255.0
         inet6 addr: fe80::20d:88ff:fe37:fa22/64 Scope:Link
         UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
         RX packets:58 errors:5 dropped:0 overruns:0 frame:0
         TX packets:9 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:1000
         RX bytes:7808 (7.6 KiB)  TX bytes:618 (618.0 b)
         Interrupt:5 Base address:0xd000

lo        Link encap:Local Loopback
         inet addr:127.0.0.1  Mask:255.0.0.0
         inet6 addr: ::1/128 Scope:Host
         UP LOOPBACK RUNNING  MTU:16436  Metric:1
         RX packets:107 errors:0 dropped:0 overruns:0 frame:0
         TX packets:107 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:0
         RX bytes:8493 (8.2 KiB)  TX bytes:8493 (8.2 KiB)

[root@arrakis ~]#



I'm looking into the man page, but the syntax escapes me at the moment :(


thanks,

Thufir


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux