익스트림 스위치 OSPF 라우팅 설정
구성환경
GNS3 vm EXOS switch
1. EXSwitch-R : 라우터 역할
2. EXSwitch-1 : switch 1
3. EXSwitch-2 : switch 2
제약 사항
GNS3 EXOSvm에서 tagged vlan 포트끼리 통신안되는 현상이 있어, untagged포트를 사용했다.
참고문서 : https://gtacknowledge.extremenetworks.com/articles/How_To/How-to-configure-an-OSPF-interface
1. 공통사항
두개의 VLAN(CATS, DOGS)을 설정하고, 1-2 포트는 CATS에, 5-6포트는 DOGS에 설정한다.
configure default delete ports all create vlan CATS tag 110 create vlan DOGS tag 120 configure vlan CATS add ports 1-2 configure vlan DOGS add ports 5-6
EXSwitch-R 의 vlan interface 설정
configure vlan CATS ipaddress 192.168.100.1/24 configure vlan DOGS ipaddress 172.16.10.1/24
EXSwitch-1의 vlan intterface 설정
configure vlan CATS ipaddress 192.168.100.2/24 configure vlan DOGS ipaddress 172.16.10.2/24
EXSwitch-2의 vlan intterface 설정
configure vlan CATS ipaddress 192.168.100.3/24 configure vlan DOGS ipaddress 172.16.10.3/24
ospf 설정을위해서는 ipforwarding을 enable 상태로 두어야 한다.
enable ipforwarding vlan CATS enable ipforwarding vlan DOGS
2. OSPF 설정
EXSwitch-R 의 ospf 설정
configure ospf routerid 1.1.1.1 configure ospf add vlan CATS area 0.0.0.0 configure ospf add vlan DOGS area 0.0.0.0 enable ospf
EXSwitch-1의 ospf 설정
configure ospf routerid 2.2.2.2 configure ospf add vlan CATS area 0.0.0.0 configure ospf add vlan DOGS area 0.0.0.0 enable ospf
EXSwitch-2의 ospf 설정
configure ospf routerid 3.3.3.3 enable ospf configure ospf add vlan CATS area 0.0.0.0 configure ospf add vlan DOGS area 0.0.0.0
vpcs-1에서, vpcs2 까지 ping 확인해본다.
VPCS-1> sh ip NAME : VPCS-1[1] IP/MASK : 192.168.10.10/24 GATEWAY : 192.168.10.1 DNS : MAC : 00:50:79:66:68:00 LPORT : 10086 RHOST:PORT : 127.0.0.1:10087 MTU: : 1500 VPCS-1> ping 172.16.10.10 84 bytes from 172.16.10.10 icmp_seq=1 ttl=63 time=6.107 ms 84 bytes from 172.16.10.10 icmp_seq=2 ttl=63 time=7.763 ms 84 bytes from 172.16.10.10 icmp_seq=3 ttl=63 time=8.852 ms 84 bytes from 172.16.10.10 icmp_seq=4 ttl=63 time=4.330 ms 84 bytes from 172.16.10.10 icmp_seq=5 ttl=63 time=4.578 ms
3. ospf 상태 확인
EXSwitch-R.71 # sh ospf neighbor Neighbor ID Pri State Up/Dead Time Address Interface BFD Session State ========================================================================================== 2.2.2.2 1 FULL /DR 00:00:50:21/00:00:00:01 192.168.10.2 CATS None 3.3.3.3 1 FULL /BDR 00:00:46:52/00:00:00:01 172.16.10.3 DOGS None Total number of neighbors: 2 (All neighbors in Full state)
—————
EXSwitch-R 설정
—————
EXSwitch-R.1 # sh config # # Module devmgr configuration. # configure snmp sysName "EXSwitch-R" configure snmp sysContact "support@extremenetworks.com, +1 888 257 3000" configure sys-recovery-level switch reset # # Module vpex configuration. # # # Module vlan configuration. # configure vlan default delete ports all configure vr VR-Default delete ports 1-12 configure vr VR-Default add ports 1-12 configure vlan default delete ports 1-12 create vlan "CATS" configure vlan CATS tag 110 create vlan "DOGS" configure vlan DOGS tag 120 configure vlan CATS add ports 1-2 untagged configure vlan DOGS add ports 5-6 untagged configure vlan CATS ipaddress 192.168.10.1 255.255.255.0 enable ipforwarding vlan CATS configure vlan DOGS ipaddress 172.16.10.1 255.255.255.0 enable ipforwarding vlan DOGS # # Module mcmgr configuration. # # # Module otm configuration. # # # Module fdb configuration. # # # Module rtmgr configuration. # # # Module policy configuration. # # # Module aaa configuration. # # # Module acl configuration. # # # Module bfd configuration. # # # Module bgp configuration. # # # Module cfgmgr configuration. # # # Module dosprotect configuration. # # # Module dot1ag configuration. # # # Module eaps configuration. # # # Module edp configuration. # # # Module elrp configuration. # # # Module ems configuration. # # # Module epm configuration. # # # Module erps configuration. # # # Module esrp configuration. # # # Module etmon configuration. # # # Module exsshd configuration. # # # Module hal configuration. # configure ports 1 debounce time 0 configure ports 2 debounce time 0 configure ports 3 debounce time 0 configure ports 4 debounce time 0 configure ports 5 debounce time 0 configure ports 6 debounce time 0 configure ports 7 debounce time 0 configure ports 8 debounce time 0 configure ports 9 debounce time 0 configure ports 10 debounce time 0 configure ports 11 debounce time 0 configure ports 12 debounce time 0 # # Module idMgr configuration. # # # Module ipSecurity configuration. # # # Module isis configuration. # # # Module lldp configuration. # # # Module mrp configuration. # # # Module msdp configuration. # # # Module netLogin configuration. # # # Module netTools configuration. # # # Module ntp configuration. # # # Module ospf configuration. # configure ospf routerid 1.1.1.1 enable ospf configure ospf add vlan CATS area 0.0.0.0 configure ospf add vlan DOGS area 0.0.0.0 # # Module ospfv3 configuration. # # # Module ovsdb configuration. # # # Module pim configuration. # # # Module poe configuration. # # # Module rip configuration. # # # Module ripng configuration. # # # Module snmpMaster configuration. # # # Module stp configuration. # # # Module techSupport configuration. # # # Module telnetd configuration. # # # Module tftpd configuration. # # # Module thttpd configuration. # # # Module twamp configuration. # # # Module vmt configuration. # # # Module vrrp configuration. # # # Module vsm configuration. #
—————–
EXSwitch-1 설정
—————–
EXSwitch-1.4 # sh config # # Module devmgr configuration. # configure snmp sysName "EXSwitch-1" configure snmp sysContact "support@extremenetworks.com, +1 888 257 3000" configure sys-recovery-level switch reset # # Module vpex configuration. # # # Module vlan configuration. # configure vlan default delete ports all configure vr VR-Default delete ports 1-12 configure vr VR-Default add ports 1-12 configure vlan default delete ports 1-12 create vlan "CATS" configure vlan CATS tag 110 create vlan "DOGS" configure vlan DOGS tag 120 configure vlan CATS add ports 1-2 untagged configure vlan DOGS add ports 5-6 untagged configure vlan DOGS ipaddress 172.16.10.2 255.255.255.0 enable ipforwarding vlan DOGS configure vlan CATS ipaddress 192.168.10.2 255.255.255.0 enable ipforwarding vlan CATS # # Module mcmgr configuration. # # # Module otm configuration. # # # Module fdb configuration. # # # Module rtmgr configuration. # # # Module policy configuration. # # # Module aaa configuration. # # # Module acl configuration. # # # Module bfd configuration. # # # Module bgp configuration. # # # Module cfgmgr configuration. # # # Module dosprotect configuration. # # # Module dot1ag configuration. # # # Module eaps configuration. # # # Module edp configuration. # # # Module elrp configuration. # # # Module ems configuration. # # # Module epm configuration. # # # Module erps configuration. # # # Module esrp configuration. # # # Module etmon configuration. # # # Module exsshd configuration. # # # Module hal configuration. # configure ports 1 debounce time 0 configure ports 2 debounce time 0 configure ports 3 debounce time 0 configure ports 4 debounce time 0 configure ports 5 debounce time 0 configure ports 6 debounce time 0 configure ports 7 debounce time 0 configure ports 8 debounce time 0 configure ports 9 debounce time 0 configure ports 10 debounce time 0 configure ports 11 debounce time 0 configure ports 12 debounce time 0 # # Module idMgr configuration. # # # Module ipSecurity configuration. # # # Module isis configuration. # # # Module lldp configuration. # # # Module mrp configuration. # # # Module msdp configuration. # # # Module netLogin configuration. # # # Module netTools configuration. # # # Module ntp configuration. # # # Module ospf configuration. # configure ospf routerid 2.2.2.2 enable ospf configure ospf add vlan CATS area 0.0.0.0 configure ospf add vlan DOGS area 0.0.0.0 # # Module ospfv3 configuration. # # # Module ovsdb configuration. # # # Module pim configuration. # # # Module poe configuration. # # # Module rip configuration. # # # Module ripng configuration. # # # Module snmpMaster configuration. # # # Module stp configuration. # # # Module techSupport configuration. # # # Module telnetd configuration. # # # Module tftpd configuration. # # # Module thttpd configuration. # # # Module twamp configuration. # # # Module vmt configuration. # # # Module vrrp configuration. # # # Module vsm configuration. # EXSwitch-1.5 #
—————–
EXSwitch-2 설정
—————–
* EXSwitch-2.8 # sh config # # Module devmgr configuration. # configure snmp sysName "EXSwitch-2" configure snmp sysContact "support@extremenetworks.com, +1 888 257 3000" configure sys-recovery-level switch reset # # Module vpex configuration. # # # Module vlan configuration. # configure vlan default delete ports all configure vr VR-Default delete ports 1-12 configure vr VR-Default add ports 1-12 configure vlan default delete ports 1-12 create vlan "CATS" configure vlan CATS tag 110 create vlan "DOGS" configure vlan DOGS tag 120 configure vlan CATS add ports 1-2 untagged configure vlan DOGS add ports 5-6 untagged configure vlan CATS ipaddress 192.168.10.3 255.255.255.0 enable ipforwarding vlan CATS configure vlan DOGS ipaddress 172.16.10.3 255.255.255.0 enable ipforwarding vlan DOGS # # Module mcmgr configuration. # # # Module otm configuration. # # # Module fdb configuration. # # # Module rtmgr configuration. # # # Module policy configuration. # # # Module aaa configuration. # # # Module acl configuration. # # # Module bfd configuration. # # # Module bgp configuration. # # # Module cfgmgr configuration. # # # Module dosprotect configuration. # # # Module dot1ag configuration. # # # Module eaps configuration. # # # Module edp configuration. # # # Module elrp configuration. # # # Module ems configuration. # # # Module epm configuration. # # # Module erps configuration. # # # Module esrp configuration. # # # Module etmon configuration. # # # Module exsshd configuration. # # # Module hal configuration. # configure ports 1 debounce time 0 configure ports 2 debounce time 0 configure ports 3 debounce time 0 configure ports 4 debounce time 0 configure ports 5 debounce time 0 configure ports 6 debounce time 0 configure ports 7 debounce time 0 configure ports 8 debounce time 0 configure ports 9 debounce time 0 configure ports 10 debounce time 0 configure ports 11 debounce time 0 configure ports 12 debounce time 0 # # Module idMgr configuration. # # # Module ipSecurity configuration. # # # Module isis configuration. # # # Module lldp configuration. # # # Module mrp configuration. # # # Module msdp configuration. # # # Module netLogin configuration. # # # Module netTools configuration. # # # Module ntp configuration. # # # Module ospf configuration. # configure ospf routerid 3.3.3.3 enable ospf configure ospf add vlan CATS area 0.0.0.0 configure ospf add vlan DOGS area 0.0.0.0 # # Module ospfv3 configuration. # # # Module ovsdb configuration. # # # Module pim configuration. # # # Module poe configuration. # # # Module rip configuration. # # # Module ripng configuration. # # # Module snmpMaster configuration. # # # Module stp configuration. # # # Module techSupport configuration. # # # Module telnetd configuration. # # # Module tftpd configuration. # # # Module thttpd configuration. # # # Module twamp configuration. # # # Module vmt configuration. # # # Module vrrp configuration. # # # Module vsm configuration. # * EXSwitch-2.9 #