Routing Question
Bill Nash
plug-discuss@lists.plug.phoenix.az.us
Thu, 13 Mar 2003 17:49:14 +0000 (UTC)
If eth0 has an address within the network you're assigning statically,
that route entry will already be in your routing table.
eth0 Link encap:Ethernet HWaddr 00:A0:C9:DB:38:16
inet addr:10.0.0.100 Bcast:10.0.0.255 Mask:255.255.255.0
billn@lotus:~$ route -n
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
- billn
On Thu, 13 Mar 2003, George Gambill wrote:
> On a Linux work station I edited /etc/init.d/network and added at the bottom
> just before the last "exit 0", the following
>
> route add -net 192.168.100.0 netmask 255.255.255.0 dev eth0
>
> when I restart the network (/etc/init.d/network restart) I get the message
> "SIOCADDRT: File exists"
>
> It works but is there a better place to be doing this???
>
> Thanks
>
> George
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us
> To subscribe, unsubscribe, or to change you mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>