bridge eth1 to eth0?
Torsten Spindler
torsten at ubuntu.com
Fri Dec 29 21:11:26 UTC 2006
On Fri, 2006-12-29 at 15:52 -0500, Matt Price wrote:
> question: how do I enable the eth1 traffic to bridge across to eth0
> and thus access the whole internet?
You need to enable ip forwarding in your kernel, to check if it is
enabled try:
$ cat /proc/sys/net/ipv4/ip_forward
1
or
$ sysctl net.ipv4.ip_forward
1
If the result is '0', you can enable it with
$ sudo sysctl -w net.ipv4.ip_forward=0
or
$ sudo echo 1 > /proc/sys/net/ipv4/ip_forward
To make this persistent over reboots, use /etc/sysctl.conf.
Torsten
More information about the ubuntu-users
mailing list