ROS对接华为VLAN交换机
实验过程:
1.实验设备:华为S2309-SI交换机、RouterOS6.27、网线若干。
ROS接口只支持Trunk模式
IP配置:
LAN 192.168.20.1/24
VLAN100 192.168.100.1/24
VLAN200 192.168.200.1/24
WAN 192.168.10.26/24
S2309-SI配置:
<Quidway>display current-configuration
#
sysname Quidway
#
vlan batch 1 100 200 ----创建VLAN 100 200 命令:vlan batch VLAN 100 200
#
bpdu enable
#
cluster enable
ntdp enable
ntdp hop 16
ndp enable
#
interface Vlanif1 -----管理ip地址
ip address 192.168.20.2 255.255.255.0
#
interface Ethernet0/0/1 ----设置VLAN100
port link-type access
port default vlan 100
ntdp enable
ndp enable
#
interface Ethernet0/0/2
port link-type access
port default vlan 100
ntdp enable
ndp enable
#
interface Ethernet0/0/3
port link-type access
port default vlan 100
ntdp enable
ndp enable
#
interface Ethernet0/0/4
port link-type access
port default vlan 100
ntdp enable
ndp enable
#
interface Ethernet0/0/5 ----设置VLAN200
port link-type access
port default vlan 200
ntdp enable
ndp enable
#
interface Ethernet0/0/6
port link-type access
port default vlan 200
ntdp enable
ndp enable
#
interface Ethernet0/0/7
port link-type access
port default vlan 200
ntdp enable
ndp enable
#
interface Ethernet0/0/8
port link-type access
port default vlan 200
ntdp enable
ndp enable
#
interface GigabitEthernet0/0/1 ----Trunk接口链接ROS接口
port link-type trunk
port trunk allow-pass vlan 1 to 4094
ntdp enable
ndp enable
#
interface NULL0
#
aaa
authentication-scheme default
#
authorization-scheme default
#
accounting-scheme default
#
domain default
#
#
user-interface con 0
user-interface vty 0 4
#
return
ROS设置:
设置NAT:
VLAN100:
VLAN200:
实验成功。试验中省略DHCP-Server配置,不懂请加群详聊 286850453
本文出自 “孤星_学习笔记” 博客,请务必保留此出处http://302622165.blog.51cto.com/8120069/1638166
原文地址:http://302622165.blog.51cto.com/8120069/1638166