靜態路由:
route-static 192.168.12.1 24 192.168.13.1
interface g0/0/1
ip address 192.168.1.1 24
rip協議:
rip 1
version 2
network 192.168.1.0
summary always version 2版本手動開啟路由匯總
ospf協議:
ospf 1
ospf 1 router-id 1.1.1.1
area 0
network 192.168.23.0 0.0.0.255
stub 末梢區域
stub no-summary 完全末梢區域
nssa 非完全末梢區域
nssa no-summary 完全非完全末梢區域
vlink-peer 4.4.4.4
vlink-peer 5.5.5.5
reset ospf 1 process 重繪ospf 1 的行程
bgp協議:
bgp 300
bgp 200
bgp 100
router-id 1.1.1.1
peer 1.1.1.1 as-number 100 as不同就是EBGP
peer 1.1.1.1 connect-interface loopback 0
peer 1.1.1.1 next-hop-local 告訴1.1.1.1下一跳是自己
reset bgp all 重繪bgp行程
vrrp虛擬路由:
interface g0/0/1
vrrp vrid virtual-ip xxxxxxxxxxxxxxxx
vrrp vrid 1 priority 110 vrrp默認100優先級
vrrp vrid track interface g0/0/0 reduced 20 監控0/0/0口,無法通過降20優先級
DHCP動態獲取ip協議:
dhcp enable
ip pool net1
network xxxxxxxxxxx mask 255.255.255.0
gateway-list xxxxxxxxxx
dns-list xxxx
lease day x hour x mintue x
static-bind ip-address xxxxxxxxx mac-address xxxx-xxxx-xxxx
interface g0/0/1
dhcp select global
interface g0/0/2
dhcp select interface
dhcp server + 全域模式的命令 相比全域模式不需要配網關
ACL規則:
acl 2000
rule permit/deny source 192.168.54.0 0.0.0.255
inter g0/0/1
traffic-filter out/inbound acl 2000
acl 3000
rule permit/deny tcp source 192.168.33.0 0.0.0.255 destination 201.168.21.2 destination-port eq 80 允許192.168.33.0網段訪問目標IP/網段 201.168.21.2的80埠
rule permit/deny ip source 192.168.3.0 0.0.0.255 destination 192.168.54.0 0.0.0.255 允許192.168.3.0網段訪問192.168.54.0網段
interface g0/0/1
traffic-filter out/inbound acl 3000
四種nat技術:
nat static global xxxxxxxxxxxxx inside xxxxxxxxxxxx 靜態
nat address-group 1 xxxxxxxxxxx xxxxxxxxxxxx
acl 2000
rule permit source xxxxxxxxxx 0.0.0.255 允許某內網網段
interface g0/0/1
nat outbound 2000 address-group 1 no-pat 該介面在出去的時候nat轉換呼叫acl 2000
不加no-pat是NAPT,加了是動態
acl 2000 Easy ip
rule permit source xxxxxxxxxxxx 0.0.0.255
inter g0/0/2
nat outbound 2000
inter g0/0/3
nat server protrocol tcp/別的協議 global xxxxxxxxxx 80/其他協議埠號 inside xxxxxxxx 80
vlan,access,trunk,hybrid命令:
vlan batch 10 20
p l t
p t a v 10 20
p l a
p d a v 10
p h pvid vlan 10
p h tagged vlan 10 20
p h untagged vlan 10 20
stp生成樹命令:
stp region-configuration 華為設備默認mstp
region-name xxxx
instance 1 vlan 10
instance 2 vlan 20
active region-configuration 到這一步stp設定好了
q
stp instance 1 root primary 設定優先級
stp instance 2 root secondary
stp生成樹需要對環路的每個交換機都進行設定
沒有進行實體配置時,默認所有vlan屬于實體0
比如沒有對vlan50,60進行實體配置,那么50,60默認實體0
單臂路由命令:
interface g0/0/0.1
ip address 192.168.1.1
dot1q termination vid 10
arp broadcast enable
三層交換機虛介面命令:
vlan batch 10 20
inter vlan 10
ip address xxxxxxxxxxxxxxxxx
路由器和交換機的鏈路聚合:
inter eth-trunk 1
undo portswitch 路由和交換機進行鏈路聚合額外輸入的命令
ip address 路由進行鏈路聚合需要給邏輯介面配ip
mode lacp-static
trunkport e 0/0/1 to 0/0/3
trunkport e0/0/4
p l t
p t a v 10 20 30
max active-linknumber x
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/280327.html
標籤:其他
