Chris -- I don't have your prior messages, so I can't refer back to your routing table from the Cisco. Without it, I can give you only a partial answer to your questions. See below.

At 12:25 PM 8/14/2004 +0800, Chris Lee wrote:
Dear Ray,

Many thanks for your details reply.

Let discuss the NAT? part first.

> >Ethernet0       10.0.108.254/255.255.255.0
> >                 203.198.77.78/255.255.240
> >
> >Ethernet1       172.23.76.154/255.255.255.252

I try to use uClibc 2.2RC1, but I don't know how to setup the eth0 (WAN) and
eth1 (LAN) for about settings at /etc/network/interfaces.
Assume leaf's eth0 is CISCO Ehernet1 and eth1 is Ethernet0

auto eth0
iface eth0 inet static
        address 172.23.76.15_ ??

presumably .154, if it is to replace the Cisco.

        netmask 255.255.255.252
        gateway 172.23.76.15_ ??

Well, since the netmask is /30, the only other available host address is .153 (.162 is the network address, .155 the broadcast address). So IF (big IF) this netwotk contains your default gateway, that must be its address.


But check the Cisco's routing table. As I recall, it had a VPN interface of some sort, and the default gateway listed in the routing table was on that interface, not on Ethernet1. So as I (and others) have said before, you have to find out from your ISP what is going on with that interface.


autho eth1

That;s a typo. Should read "auto".

address 203.198.77.7_ ??

Presumably .78, if the intent is for this router to replace the CIsco.

        netmask 255.255.255.240
        gateway 203.198.77.7_ ??

This is your internal interface, so it has no gateway entry. A gateway is a default route ... where the router should direct any traffic that it does not have a direct route to. Only one interface has a gateway entry under normal circumstances.


Any Hints?

If you plan also to have the router handle (route or NAT) the 10.0.108.254/255.255.255.0 network, you'll net an eth0 entry for that as well. Look in the Shorewall guides for help in assigning multiple IP addresses to an interface.


Regards,
Chris Lee







------------------------------------------------------- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 ------------------------------------------------------------------------ leaf-user mailing list: [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/leaf-user SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html

Reply via email to