LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 11-23-2012, 10:27 PM   #1
RootMason
Member
 
Registered: Oct 2012
Location: Tucson, AZ
Distribution: Debian/CentOS
Posts: 124

Rep: Reputation: 5
Routing Forwarding between Linksys Router, Debian server and CentOS client


Hello all!

I'm a student of Network Admin and I am having a hell of a time trying to set up a LAN test lab. I'm using VM Workstation9 with VMnet0 bridged to my laptop's wireless (192.168.1.0/24, on a Linksys wireless router) and VMnet1 (10.10.10.0/24, on Debian eth1) as Host-Only.

The server (Debian Wheezy) is configured with 2 NICs, with eth0 as the bridged connection (192.168.1.13) & eth1 as the host-only connection (10.10.10.1). The idea is to connect the other VM's to this eth1, host-only connection, to allow me to use Debian as a Firewall, DHCP and Forwarder to the internet (eth0 on Debian and out to Linksys router) for my host machines.

The clients I am using are CentOS, DSL & Ubuntu12, and each are set with one NIC (eth0) connected to VMnet1 (host-only) with address ranges between 10.10.10.2-10. I have set up DNSMASQ to broadcast DCHP to these clients, and the clients are getting IP addresses distributed and all can ping the Debian interface eth1 (10.10.10.1). Debian can ping all interfaces (the Linksys router & client interfaces) and can connect to the internet just fine.

The problem is when trying to ping Debian's outbound interface, the Linksys router or the internet. They can ping Debian's eth1 but nothing beyond that, here's my setup (I've never been very good at ASCII art..)
/PC/iPhone/XBox /CentOS/Ubuntu12/DSL
/ / / / / /
()-----0/-----------------0/----------------
WAN Linksys Wireless Debian Server Other Cleints
192.168.1.1 192.168.1.13 eth0 10.10.10.2-10
10.10.10.1 eth1

Here's the configs for Debian server:

root@sdserver2# ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:0c:29:6b:fa:f9
inet addr:192.168.1.13 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fdc6:4617:f4f4:0:20c:29ff:fe6b:faf9/64 Scope:Global
inet6 addr: fe80::20c:29ff:fe6b:faf9/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:21 errors:0 dropped:0 overruns:0 frame:0
TX packets:50 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2242 (2.1 KiB) TX bytes:7274 (7.1 KiB)

root@sdserver2# ifconfig eth1
eth1 Link encap:Ethernet HWaddr 00:0c:29:6b:fa:03
inet addr:10.10.10.1 Bcast:192.168.23.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fe6b:fa03/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1 errors:0 dropped:0 overruns:0 frame:0
TX packets:33 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:131 (131.0 B) TX bytes:6104 (5.9 KiB)

root@sdserver2# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.10.10.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0

root@sdserver2 vi /etc/network/interfaces
# The loopback network interface
auto lo
iface lo inet loopback
#
# The primary network interface
allow-hotplug eth0
#NetworkManager#iface eth0 inet dhcp
#
auto eth1
iface eth1 inet static
address 10.10.10.1
netmask 255.255.255.0


And the configs for CentOS:

root@centserver# ifconfig eth1
eth1 Link encap:Ethernet HWaddr 00:0c:29:6b:fa:03
inet addr:10.10.10.3 Bcast:192.168.23.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fe6b:fa03/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1 errors:0 dropped:0 overruns:0 frame:0
TX packets:33 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:131 (131.0 B) TX bytes:6104 (5.9 KiB)

root@centserver# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.10.10.0 0.0.0.0 255.255.255.0 U 1 0 0 eth1
0.0.0.0 10.10.10.1 0.0.0.0 UG 0 0 0 eth1

And the configs for the Linksys e1200
Firmware Version: 2.0.04 build 1 Jul 30, 2012
Current Time: Fri, 23 Nov 2012 21:07:15
Host Name: sdrouter
Domain Name: test.com
Connection Type: Automatic Configuration - DHCP
Internet IP Address: 68.63.xxx.xxx
Subnet Mask: 255.255.252.0
Default Gateway: 68.63.xxx.xxx
DNS1: 75.75.75.75
DNS2: 75.75.76.76
Router IP Address: 192.168.1.1
Subnet Mask: 255.255.255.0
DHCP Server: Enabled
Start IP Address: 192.168.1.2
End IP Address: 192.168.1.19

I have enabled forwarding with:

echo 1 > /proc/sys/net/ipv4/ip_forward

... and I have cleared iptables with everything set to ALLOW (I'll mess it up when I get it connected).

Anyways, hopefully someone can help me troubleshoot this problem. Any help would be much appreciated. The good news is the amount I've learned from just NOT being able to get this to work! Thanks for reading my super-long post!

Steve
 
Old 11-24-2012, 02:12 PM   #2
RootMason
Member
 
Registered: Oct 2012
Location: Tucson, AZ
Distribution: Debian/CentOS
Posts: 124

Original Poster
Rep: Reputation: 5
As an addition, the problem (I believe) must be in the Debian config, as the clients attached to 10.10.10.0 cannot ping the Debian eth0 interface (192.168.1.13) and the Linksys router on 192.168.1.0 cannot ping the Debian eth1 interface (10.10.10.1). Again, any help would be much appreciated, even if it's just a point in the right direction. Please let me know if you require any further config info and I will post it ASAP.
 
  


Reply



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
[SOLVED] port forwarding does not work with linksys WRT54GS wireless router debian testing mf93 Linux - Networking 14 11-14-2009 07:20 PM
Auth failure on Debian LDAP Server with CentOS 5.2 Client odcheck Linux - Server 2 10-24-2008 12:47 PM
Some difficulty configuring port-forwarding through Linksys router eventide Linux - Networking 9 03-03-2005 01:04 PM
Forwarding port 80 to two hosts from a Linksys router ridertech Linux - Networking 1 08-19-2004 12:56 PM
Linksys router- forwarding ports glore Linux - Networking 1 06-01-2004 11:00 PM

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

All times are GMT -5. The time now is 03:08 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