Bekijk de volledige versie : Put a LAN port on a different VLAN
I have been trying to do this to my WL500gx without success. So I may as well ask here. I issued these commands at the shell prompt ( if i remember it correctly )
/*create a new vlan with vlan id 2*/
$ vconfig add eth0 2
/*put switching port 5 onto the vlan */
$ vconfig add_port_nountag_nodeftag 2 5
$ vconfig add_port 2 5
After this, the port 5 ( which is label Lan0 ) is dead, while other ports are still OK, which seems very promising. Then I go ahead to do this :-
/* configure IP */
$ ifconfig eth0.2 x.x.x.x up
$ ping x.x.x.x
The pings works from inside but I can't ping from outside,
ie packets do not seem to reach the hardware. Also the Tx, Rx is never increased.
I must have missed quite a few other steps. Any clue ?
Cheers.
I have been trying to do this to my WL500gx without success. So I may as well ask here. I issued these commands at the shell prompt ( if i remember it correctly )
/*create a new vlan with vlan id 2*/
$ vconfig add eth0 2
/*put switching port 5 onto the vlan */
$ vconfig add_port_nountag_nodeftag 2 5
$ vconfig add_port 2 5
After this, the port 5 ( which is label Lan0 ) is dead, while other ports are still OK, which seems very promising. Then I go ahead to do this :-
/* configure IP */
$ ifconfig eth0.2 x.x.x.x up
$ ping x.x.x.x
The pings works from inside but I can't ping from outside,
ie packets do not seem to reach the hardware. Also the Tx, Rx is never increased.
I must have missed quite a few other steps. Any clue ?
Cheers.
hi, have you succeded?
Hi,
I have problem with my 500gx (running 1.9.2.7-5a) in client mode (WiFi connection to ISP and all ethernet ports should be 1 switched/bridged LAN segment).
Ethernet ports named LAN are not working as should work- only WAN port is working well .
eth0 and eth0.1 are bridged as br0 and runs DHCP server
When I connect my PC to ethernet port named WAN(eth0), it works well, when to LAN(eth0.1), I see only spanning tree and Upnp messages, there is no reply from DHCP server, no traffic.
Vconfig command might help but I am not able to find any information about parameters/commands used in your example:
vconfig add_port_nountag_nodeftag 2 5
man pages of vconfig command on Linux PC is not describing this add_port_nountag_nodeftag value :( .
Is there any manpage/documentation describing vconfig for Asus 500g(x) and/or internal architecture (how is internal switch connected and trunking should be used for the situation I want)?
have found references:
http://openwgt.informatik.hu-berlin.de/installation.php
http://files.wl500g.info/asus/wl500g/gpl/broadcom/src/router/vlan/vconfig.c
In the Wl500g deluxe, ports are labeled as follows:
0 => WAN
1 => LAN 4
2 => LAN 3
3 => LAN 2
4 => LAN 1
5 => an internal port connecting the switch to the router, and should be connected to all the vlans.
have solved. vconfig desupported now, robocfg is used now.
put 1 LAN into vlan2:
robocfg vlan 2 ports "1 5t" vlan 0 ports "2 3 4 5t"
vconfig add eth0 2
ifconfig vlan2 192.168.2.1 broadcast 192.168.2.255 netmask 255.255.255.0 up
user robocfg to configure switch and vconfig to configure vlans:
robocfg switch disable \
vlans enable \
vlans reset \
vlan 0 ports "0 5t" \
vlan 1 ports "4 5t" \
vlan 2 ports "3 5t" \
vlan 3 ports "2 5t" \
vlan 4 ports "1 5t" \
port 0 state enabled stp none \
switch enable
ifconfig eth0 up
vconfig add eth0 0
vconfig add eth0 1
vconfig add eth0 2
vconfig add eth0 3
vconfig add eth0 4