Configuring two subnets with two NICS. Access from a NAS to the internet
Posted
by
archipestre
on Server Fault
See other posts from Server Fault
or by archipestre
Published on 2012-12-03T16:14:34Z
Indexed on
2012/12/03
17:06 UTC
Read the original article
Hit count: 144
I am having trouble configuring my NAS. I have a DSL router with WIFI (192.168.1.1) in my flatmates room. In my room I have a server with two NICS:
1) wlan0 (192.168.1.2) that connects to the DSL router via wireless 2) em1 (192.168.0.1) that connects to the NAS (192.168.0.20) with a crossover cable.
I have Fedora 17 and I have enable packet forwarding. My IP configuration is as follows:
WLAN0 inet 192.168.0.1 netmask 255.255.255.0 broadcast 192.168.0.255
EM1 inet 192.168.1.2 netmask 255.255.255.0 broadcast 192.168.1.255
My routing table looks like: Destination Gateway G enmask Flags Metric Ref Use Iface
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 wlan0
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 em1
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 wlan0
I have enable a static route in the DSL server:
Status Network Destination Subnet Mask Interface Gateway Remove Edit
Active 192.168.0.0 255.255.255.0 LAN 192.168.1.2
From my server I can ping the DSL router and the NAS. From the NAS I can ping both NICS of the server. However the NAS is unable to ping the DSL router or any address in the Internet. Any idea of what is wrong. Thank you in advance
© Server Fault or respective owner