LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-31-2003, 07:20 AM   #1
swmok
Member
 
Registered: Jul 2003
Posts: 152

Rep: Reputation: 30
Unhappy Setting of Interfaces and Routing Table


Hi All:

I would like to setup and NAT server (with 2 NIC).
Pls. HELP ME!!!

Q1. Are the 2 NICs O.K.?

The interfaces setting is:
eth0
Link encap:Ethernet HWaddr 00:40:26:5A:75:9A
inet addr:210.0.202.24 Bcast:210.0.202.127 Mask:255.255.255.128
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:611 errors:0 dropped:0 overruns:0 frame:0
TX packets:659 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:56484 (55.1 KiB) TX bytes:224497 (219.2 KiB)
Interrupt:9 Base address:0xe800

eth1
Link encap:Ethernet HWaddr 00:50:BFB:8A:FA
inet addr:10.100.128.253 Bcast:10.255.255.255 Mask:255.0.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:128 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:9631 (9.4 KiB) TX bytes:0 (0.0 b)
Interrupt:10 Base address:0xec00

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:3924 Metric:1
RX packets:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:560 (560.0 b) TX bytes:560 (560.0 b)

Q2. I find that there is no entry for loopback. Is it O.K.?
The routing table is:

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
210.0.202.0 0.0.0.0 255.255.255.128 U 0 0 0 eth0
10.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 eth1
0.0.0.0 210.0.202.1 0.0.0.0 UG 0 0 0 eth0


Main Question: Are my settings ready to use Ipchains or Iptables?


Thanks.
 
Old 07-31-2003, 07:44 AM   #2
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
It all looks good to me. I have entires for lo though - what did you use to print the routing table? What does route -n show you?

From this point you should just be able to follow the IP Masquerading HOWTO from http://www.tldp.org to get you up and running. You'll be using iptables BTW.

HTH

Jamie...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
too many IDE interfaces, no room in table humbletech99 SUSE / openSUSE 2 11-11-2005 02:02 PM
Having problems routing between two interfaces... stakhous Linux - Networking 8 12-05-2004 07:10 PM
Routing between interfaces? cryptical Linux - Networking 13 08-18-2004 08:29 AM
Routing Between Virtual Interfaces on Web Server Louie55 Linux - Networking 2 02-20-2004 10:17 AM
Problem with routing between interfaces Kostko Linux - Networking 6 12-01-2003 02:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration