1. set the vlan-id for default vlan
set vlans default vlan-id 1
2. set vlans default l3-interface vlan.0
eg:
vlans { VLAN23 { vlan-id 23; l3-interface vlan.23; } default { vlan-id 1; l3-interface vlan.0; }
3. unit 0 {
family ethernet-switching {
port-mode trunk;
vlan {
members all;
}
native-vlan-id 1;
}
}
4.add the vlan interfaces to security zone.
otherwise you can't ping the other side.
5. set ip address for vlan interface unit
vlan { unit 0 { family inet { address 192.168.1.1/32; } } unit 23 { family inet { address 10.0.1.1/24; } }
No comments:
Post a Comment