Linux Inside next up previous contents index
Next: The PLIP Interface Up: Interface Configuration for IP Previous: Routing through a Gateway

Configuring a Gateway

           

Configuring a machine to switch packets between two Ethernets is pretty straightforward. Assume we're back at vlager, which is equipped with two Ethernet boards, each being connected to one of the two networks. All you have to do is configure both interfaces separately, giving them their respective IP address, and that's it.

It is quite useful to add information on the two interfaces to the hosts file in the way shown below, so we have handy names for them, too:

tscreen2824

The sequence of commands to set up the two interfaces is then:

tscreen2826



Bjorn Isaksson
Fri May 10 05:54:29 MET DST 1996