LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   routing table (https://www.linuxquestions.org/questions/linux-networking-3/routing-table-682039/)

scofiled83 11-08-2008 07:10 PM

routing table
 
Hi
below was my pop quiz question.I worked a lot but couldnt come to solution.
Any help would be appreciated...


The Linux system pokey has two Ethernet cards. The first Ethernet card is connected to a companywide
TCP/IP network covering the addresses 87.65.43.xx, where pokey’s address is
87.65.43.21. The second Ethernet interface is connected to a smaller local network covering the
addresses 192.168.1.x. The machine named skeptopotamus, with the address
87.65.43.1, can route traffic from pokey to the rest of the Internet. What does pokey’s routing
table look like (show destination addresses/masks, interfaces and other information where needed).

jschiwal 11-08-2008 07:40 PM

You would use skeptopotamus's IP address as the default gateway. I'm not certain if you want to route traffic between the 87.65.43.0 network and the 192.168.0.0 network. You do need a route entry for each network, but if you want to forward traffic for the hosts in the two networks, you need to enable that as well.
I've found that I also need to load the "nf_conntrack" kernel module as well as enable IP forwarding. The latter is done with "echo 1 > /proc/sys/net/ipv4/ip_forward" as root, but may be handled by your distro's network configuration.


All times are GMT -5. The time now is 01:07 PM.