hameed
July 12, 2013, 6:50am
1
Dear Friends,
I am using RB450G Board, i have created 4 VLANs on Ether2 interface and this ether2 interface connected to Switch Trunk Port and some switch ports are configure with different diffrenet vlans.
What i want is, i am assigning ip address on ether2 and it should work on all vlan port of switch.
i tried it but not working, it is working only on switch port which is in vlan1.
Please assist me to do so.
javcia
July 12, 2013, 7:34am
2
Can you show your config?
hameed
July 12, 2013, 7:43am
3
Please see my config screen shot.
i want to assign ip on ether2 but i should also work on all my vlan interfaces.
javcia
July 12, 2013, 8:49am
4
For example:
172.16.0.0/24 - Untagged
172.16.1.0/24 - vlan2
172.16.2.0/24 - vlan3
172.16.3.0/24 - vlan4
interface vlan add vlan-id=2 interface=ether2
interface vlan add vlan-id=3 interface=ether2
interface vlan add vlan-id=4 interface=ether2
Untagged
ip address add address=172.16.0.1 netmask=255.255.255.0 network=172.16.0.0 interface=ether2 disabled=no
taggged vlan
ip address add address=172.16.1.1 netmask=255.255.255.0 network=172.16.0.0 interface=vlan2 disabled=no
ip address add address=172.16.2.1 netmask=255.255.255.0 network=172.16.0.0 interface=vlan3 disabled=no
ip address add address=172.16.3.1 netmask=255.255.255.0 network=172.16.0.0 interface=vlan4 disabled=no
hameed
July 12, 2013, 9:00am
5
i want to add an IP on ether2 for ex: 10.164.164.2/24
what i want is if i assigned ip 10.164.164.3 on a pc which is connected to switch accessing vlan 124 it should work, is that possible?
Vlans separate L2 domains. You cant have a single L3 address across multiple L2 domains.
Bridge the vlans, and then assign the IP to the bridge.
javcia
July 12, 2013, 9:12am
7
Because you want to use vlan124 on a switch you have to assign 10.164.164.2/24 to vlan124 interface on a RB. Then it will work. That`s how i do.
hameed
July 12, 2013, 10:52am
8
I have assigned class b subnet ip on every vlan interface, its working fine, now i want is i want to assign class a subnet ip on ether2 or one of any vlan interface, but it should work on all vlan interface, if i bridge all vlan interface may be it will not work.
KeeF
July 15, 2013, 9:01am
9
hameed:
I have assigned class b subnet ip on every vlan interface, its working fine, now i want is i want to assign class a subnet ip on ether2 or one of any vlan interface, but it should work on all vlan interface, if i bridge all vlan interface may be it will not work.
Yes, it will not work. If an interface is in bridge, routeros can’t route to this interface.