Need to network a boxen.

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Kevin Brown
Date:  
Subject: Need to network a boxen.
> How would I know if the module is loaded?

as root:
lsmod

> Anyways....
>
> ifconfig -a
>
> eth0 Link encap: Ethernet HWaddr inetaddr:140.198.60.160 Bcast: 140.198.255.255 Mask: 255.255.2545.128
>      UPBROADCAST RUNNING MULTICAST MTU:1500 Metric:1
>      RX Packets:13033 errors:0 dropped:0 overruns:0 frame:0
>      TX Packets:122 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:100

>
>      RX bytes:1372784 (1.3 Mb) Tx bytes: 20176 (19.7 Kb)

>
> eth0:9 Link encap: Ethernet HW addr:00:A0:C9:E7:45:35
>        inet addr:127.255.255.255 Bcast: 127.255.255.255  Mask:255.0.0.0
>        UPBROADCAST RUNNING MULTICAST MTU:1500 Metric:1
>        Interrupt: 9 Base address: 0x7000


Wonder why someone set up a virtual device with the 127.x.x.x network.

> lo   Link encap: Local Loopback
>      inetaddr:127.0.0.1 Mask: 255.0.0.0
>      UPLOOPBACK RUNNING MTU:16436 Metric: 1
>      RX packets: 158 errors:0 dropped:0 overruns:0 frame:0
>      TX packets: 158 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0
>      RX bytes:12194 (11.9 Kb) TX bytes: 12194 (11.9)

>
> route
> Destination    Gateway Genmask         Flags Metric Ref Use Iface
> 140.198.60.128 *       255.255.255.128 U     0      0   0   eth0
> 127.0.0.0      *       255.0.0.0       U     0      0   0   lo


Looks like you are lacking a default gateway and so can only reach hosts in the
140.198.60.129-255 range.

My route -n shows:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.0.0.0        0.0.0.0         255.255.255.0   U     0      0        0 eth0
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
0.0.0.0         10.0.0.1        0.0.0.0         UG    0      0        0 eth0


Notice the last line shows destination of any and has the flag to be a gateway (G).