1、接口支持別名即第二地址、vlan、端口聚合(bond)、橋接、PPPOE等。
如果在修改、添加、刪除接口后在smartdashboard中使用get topology時顯示錯誤的拓撲信息,可以在專家模式下先cpstop,然后cpstart.相當于把系統進程重啟一遍。
2、cli設置網口ip
2.1
set interface eth2 ipv4-address 202.100.1.254 subnet-mask 255.255.255.0
set interface eth2 mtu 1500
set interface eth2 state on
set interface eth2 link-speed 1000M/full
2.2
添加、刪除別名ip
add interface eth2 alias 202.100.1.253/24
delete interface eth2 alias eth2:2
2.3刪除vlan
add interface vlan eth2
set interface eth2.100 ipv4-address 10.1.100.254 subnet-mask 255.255.255.0
set interface eth2.100 ipv6-address 209:99:1 mask-length 64
delete interface eth2 vlan 100
記得save config保存。
2.4端口聚合
2.4.1
add bonding group <bond-id>
delete bonding group <bond-id>
2.4.2定義bond mode
set bonding group <bond-id> mode <mode>
round-robin (default) 輪詢
active-backup 熱備
xor
802.3ad
2.4.3添加bonding group interface
add bonding group <Bond ID> interface <IF Name>
如:add bonding group 777 interface eth5
2.4.4設置eth5為primary
set bonding group 777 primary eth5
3、arp
添加靜態arp
add arp static ipv4-address VALUE macaddress VALUE
刪除
delete arp dynamic all
delete arp static ipv4-address ALUE
設置arp參數
set arp table validity-timeout VALUE
set arp table cache-size VALUE
查看arp設置參數
show arp dynamic all
show arp static all
show arp table validity-timeout
show arp table cache-size
4、設置靜態路由
set static-route <Destination> nexthop gateway address <GW IP> [priority <P Value>]on|off 下一跳ip形式表現
nexthop gateway logical <GWIF> [priority <P Value>] on|off 下一跳以接口形式表現,不建議使用。
nexthop blackhole 路由黑洞,直接丟棄到目的網段的數據包,不回饋。
nexthop reject 丟棄到目的的數據包,并給出回應信息。
示例:
set static-route 192.0.2.100 nexthopgateway address 192.0.2.10 onpriority1
set static-route 192.0.2.0/24 nexthopgateway logical eth5 on priority 2
set static-route 192.0.2.0/24 nexthopgateway logical eth6 on priority 3
路由維護:
show route static 查看路由
set static-route <Destination> off 刪除到目的網段的所有路由
set static-route <Destination> nexthop gateway <GW ID> off 刪除到目的網段的某一條明確路由
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。