[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Second Ethernet Gateway
- Subject: Re: [cobalt-users] Second Ethernet Gateway
- From: "Rick Ewart" <cobalt@xxxxxxxxx>
- Date: Wed Jul 3 17:33:23 2002
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
Jason wrote:
> How can I add a gateway for the second Ethernet port? it is connected to
a
> different router and I need to make sure that packets go there....
Well, I have mine working via a static route. There might be a different
way, but this works for me. Assuming the LAN ip inside the colo box is
10.1.1.X, with the gateway on 10.1.1.1, and the remote address you are
trying to reach through this connection is 192.168.1.X. You would put the
following in a script that starts every time you boot....
/sbin/route add -net 192.168.1.0 netmask 255.255.255.0 gw 10.1.1.1
You could add additional route commands to reach other networks that you
want this Eth connection to use.
Keep in mind that if you are using a deny all policy in your IP chains
configuration, you might have to open the second eth port up before it works
right.
HTH.
Rick Ewart