Troubles setting up Linux router
All,
I am trying to setup my CentOS 6.4 as a router between a 2 local networks . This is a virtual machine Im using VMware Workstation. Here are my settings.
[root@Centos-FW ~]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:0C:29:43:xx:xx
inet addr:192.168.1.92 Bcast:192.168.1.95 Mask:255.255.255.240
inet6 addr: fe80::20c:29ff:fe43:2cc6/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:46 errors:0 dropped:0 overruns:0 frame:0
TX packets:42 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:13854 (13.5 KiB) TX bytes:3076 (3.0 KiB)
eth1 Link encap:Ethernet HWaddr 00:0C:29:43:xx:xx
inet addr:192.168.0.15 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fe43:2cd0/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:553 (553.0 b)
[root@Centos-FW ~]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.80 0.0.0.0 255.255.255.240 U 1 0 0 eth0
192.168.0.0 0.0.0.0 255.255.255.0 U 1 0 0 eth1
0.0.0.0 192.168.1.81 0.0.0.0 UG 0 0 0 eth0
[root@Centos-FW ~]# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
eth0 is bridged to the host, eth1 is on a LAN segment and is the default gateway for the 192.168.0.0/24 network. All hosts on this network are a part of the same LAN segment. ip forwarding is set to 1.
I am don't using any dns or host names only IP addresses.
I can ping both interfaces from their respective networks but not through the box.
I have looked around on forums and youtube, all resources Ive used indicate this setup should work, any help would be appreciated
thanks
Dan
Last edited by dfclin073; 09-07-2013 at 09:33 AM.
|