Extreme交換機基礎配置命令
交換機根據工作位置的不同,可以分為廣域網交換機和區域網交換機。那麼你知道Extreme交換機嗎?Extreme交換機的基礎配置命令是什麼?下面跟yjbys小編一起來瞧瞧吧!
1.使用者名稱和密碼配置
create account [admin | user]
configure account admin
配置
config ports
配置
無論是核心還是接入層,都要先建立三個Vlan,並且將所有歸於Default Vlan的埠刪除:
config vlan default del port all
create vlan Server
create vlan User
create vlan Manger
定義802.1q標記
config vlan Server tag 10
config vlan User tag 20
config vlan Manger tag 30
設定Vlan閘道器地址:
config vlan Server ipa
config vlan User ipa
config vlan Manger ipa 192.168.*.*/24
Enable ipforwarding 啟用ip路由轉發,即vlan間路由
Trunk 配置
config vlan Server add port 1-3 t
config vlan User add port 1-3 t
config vlan manger add port 1-3 t
配置
enable vrrp
configure vrrp add vlan UserVlan
configure vrrp vlan UserVlan add master vrid 10
configure vrrp vlan UserVlan authentication simple-password extreme
configure vrrp vlan UserVlan vrid 10 priority 200
configure vrrp vlan UserVlan vrid 10 advertisement-interval 15
configure vrrp vlan UserVlan vrid 10 preempt
5.埠映象配置
enable mirroring to port 3 #選擇3作為映象口
config mirroring add port 1 #把埠1的流量傳送到3
config mirroring add port 1 vlan default #把1和vlan default的流量都發送到3
-channel配置
enable sharing
配置
enable stpd
create stpd *
configure stpd add vlan
configure stpd stpd1 priority 16384
configure vlan marketing add ports 2-3 stpd stpd1 emistp
中繼配置
enable bootprelay
config bootprelay add
中繼。bootp relay /dhcp relay 用於主機獲取它的IP地址,但是在一個高度需要安全的網路中需要以更安全的方法配置它,比如通過udp-forwarding的方法來配置dhcp relay。disable bootprelay 以下是一個用udp-forwarding 代替enable bootrelay 的`配置例子。
create udp-profile backbonedhcp
config backbonedhcp add 67 ipaddress *
config user_vlan1 udp-profile backbonedhcp
配置
Enable nat #啟用nat
Static NAT Rule Example
config nat add out_vlan_1 map source to
Dynamic NAT Rule Example
config nat add out_vlan_1 map source to -
Portmap NAT Rule Example
config nat add out_vlan_2 map source to /28 both portmap
Portmap Min-Max Example
config nat add out_vlan_2 map source to tcp portmap 1024 - 8192
配置
enable ospf 啟用OSPF程序
create ospf area
建立OSPF區域configure ospf routerid [automatic |
configure ospf add vlan [
configure ospf area
add rangeconfigure ospf vlan
OSPF中路由重發布配置
enable ospf export direct [cost
enable ospf export static [cost
enable ospf originate-default {always} cost
enable ospf originate-router-id
配置
enable snmp access
enable snmp traps
create access-profile type [ipaddress | vlan]
config snmp access-profile readonly [ | none]配置snmp的只讀訪問列表,none是去除
config snmp access-profile readwrite [ | none] 這是控制讀寫控制
config snmp add trapreceiver