Need help. I have never encountered vlan before, but this is what needs to be done.
In general, there is a linksys 4400n router, which sucks keeps the pptp connection with the provider. There is a laptop from which I want to make a router, but there is one ethernet port.
How I present:
The laptop connects to port 1 of the 4400 router, then connects to the provider and distributes the Internet to ports 2 and 3 of the router.
In general, as I understand it, you need to create two vlan in windows. I have this vlan1 and vlan2. And is there no need to set up anything else?
How to configure the router? Do I create two vlans in it too? One already is by default and I create the second vlan.
What settings should be set there?
That is, it is necessary for vlan1 to have access to the provider (access to the internet port of the router), and vlan2 to be combined with port 2 and 3 of the router.
Appropriate for vlan1, the laptop connects to the Internet, and for vlan2, the laptop already distributes the Internet to ports 2 and 3 of the router.
Thanks in advance ...
Answers
I work with debian, but in ubunt, pollock and other debianzeized will work too. It does this:
auto eth0: 1 eth0: 2
iface eth0: 1 inet dhcp
iface eth0: 2 inet static
address 192.168.0.1
& lt; ..... & gt; blockquote>
the only thing that you cannot use in network / interfaces without aliases. - coralyn
And in iptables I don’t like to work with interfaces, IMHO it’s more useful to write rules for addresses and subnets, then if the name of the face changes or something happens, you don’t have to redo anything. You can also set them with variables, of course, but still superfluous actions, IMHO. - jamie kustak
If you do it through vlan, then on the router you need something like this (x-port of the provider):
x - access tag 1
1 - trunk tag 1,2
2.3 access tag 2