network ip config question
Bruno Wolff III
bruno at wolff.to
Mon Feb 19 05:14:13 UTC 2007
On Sun, Feb 18, 2007 at 13:18:22 +0100,
michiel <m.karsch at gmail.com> wrote:
> local network:
> eth0 Link encap:Ethernet HWaddr 00:0E:2E:54:9B:D6
> inet addr:192.168.0.12 Bcast:192.168.0.255 Mask:255.255.255.0
>
> adsl modem conn:
> eth1 Link encap:Ethernet HWaddr 00:02:44:27:BC:7E
> inet addr:213.10.28.64 Bcast:213.10.28.64 Mask:255.255.255.255
>
> Kernel IP routing table
> Destination Gateway Genmask Flags Metric Ref Use
> Iface
> 10.0.0.138 213.10.28.64 255.255.255.255 UGH 0 0 0 eth1
> 192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
> 0.0.0.0 10.0.0.138 0.0.0.0 UG 0 0 0 eth1
Using the ip command you can set up something simpler by hand.
ip addr add dev eth1 213.10.28.64 peer 10.0.0.138/32
Keep your default route as before. Packets going out eth1 will get
213.10.28.64 as their source address by default.
Unfortunately Fedora's network config stuff doesn't let you do this.
Also, I don't know how easy it is to do this when the address you need comes
via dhcp.
More information about the fedora-list
mailing list