Hey guys,
I am new to open source routing and linux in general. I have a script which runs a binary that requires 2 ethernet interfaces eth0 and eth1. Where eth1 is for a wan connection and eth0 is for a lan connection.
I am currently using an airlink 101 ar335 which I don't believe has an eth1 card (if someone can correct me please do)
What I tried to do was to create a virtual lan by modifying the /etc/config/network file by adding:
config switch eth0
option vlan0 "0 1 2 3 5*"
option vlan1 "4 5"
and modifying eth0 to be eth0.0 below
config interface lan
option ifname eth0.0
option type interface
option proto static
option ipaddr 192.168.77.111
option netmask 255.255.255.0
then creating vconfig eth0.1 and eth0.0, bridging them, trying to associate eth0.0 as eth0 and eth0.1 as eth1. I ran into 3 problems:
1) I lost routing to the internet when I created the virtual lans. My router can ping hosts over the internet but my pc connected directly via lan port could not access the internet.
2) I did not assign eth0.1/eth0.0 to a specific port (I do not know how) so eth0.1 was not transmitting any packets
3) When I pulled the plug off my router I couldn't access it an IP address so I had to reboot.
I know this is a lot of questions into a single question but if there is an alternate way to separate eth0/eth1 for lan/wan rather than a vlan suggestions are welcome.
Also if I am doing something wrong when setting up a vlan when vlans indeed should meet my needs again point me in the right direction.
Thank you for your help
Hamid