18 123
发新话题
打印

[问题求助] 如何为Juniper交换机创建VLan接口地址?

【 SwitchA 相关配置】
1. 创建(进入) VLAN10
[SwitchA]vlan 10
2. 将 E0/1 加入到 VLAN10
[SwitchA-vlan10]port Ethernet 0/1
3. 创建(进入) VLAN 接口 10
[SwitchA]interface Vlan-interface 10
4. 为 VLAN 接口 10 配置 IP 地址
[SwitchA-Vlan-interface10]ip address 10.1.1 .1 255.255.255.0
5. 创建(进入) VLAN20
[SwitchA]vlan 20
6. 将 E0/2 加入到 VLAN20
[SwitchA-vlan20]port Ethernet 0/2
7. 创建(进入) VLAN 接口 20
[SwitchA]interface Vlan-interface 20
8. 为 VLAN 接口 20 配置 IP 地址
[SwitchA-Vlan-interface20]ip address 20.1.1 .1 255.255.255.0

TOP

配置VLAN路由端口
user@host# set interfaces vlan unit number family inet address x.x.x.x/yy
#配置RVI端口和地址

user@host# set vlans vlan_name l3-interface vlan.unit-number
#绑定RVI端口到某个VLAN

user@host# show vlans
user@host# show interface terse
user@host# show Ethernet-switching interface
#查看VLAN和端口信息

Example:
root@host> edit
Entering configuration mode

[edit]
root@host# set interface vlan unit 100 family inet 192.168.3.254/24

[edit]
root@host# set vlans sales l3-interface vlan.100

[edit]
root@host# commit

TOP

 18 123
发新话题