Skip to content

Instantly share code, notes, and snippets.

@tangzero
Last active November 4, 2022 19:45
Show Gist options
  • Save tangzero/e0fc7bb0ef4f291968a639c5720c0644 to your computer and use it in GitHub Desktop.
Save tangzero/e0fc7bb0ef4f291968a639c5720c0644 to your computer and use it in GitHub Desktop.

Caso 2

Eth Trunk

[SW1] port-group group-member gi 0/0/23 0/0/24
[SW1-port-group] no shutdown
[SW1-port-group] exit
[SW1] interface Eth-Trunk 1
[SW1-Eth-Trunk1] mode lacp-static
[SW1-Eth-Trunk1] trunkport gi 0/0/23 0/0/24
[SW1-Eth-Trunk1] undo shutdown
[SW1-Eth-Trunk1] quit
[SW1] display port vlan
[SW1] display eth-trunk 1

now, you can use this interface as any other

STP

[SW2] stp region-configuration
[SW2-mst-region] region-name HUWAEI2022
[SW2-mst-region] instance 1 vlan 100
[SW2-mst-region] instance 2 vlan 200
[SW2-mst-region] revision-level 1
[SW2-mst-region] active region-configuration
[SW2-mst-region] display stp region-configuration
[SW2] stp instance 1 priority 4096
[SW2] display stp instance 1 brief
[SW2] display stp instance 0
...
[SW1] stp instance 1 root primary

NAT

[R3] acl 2000
[R3-acl-basic-2000] rule permit source 192.168.100.0 0.0.0.255
[R3-acl-basic-2000] rule permit source 172.16.40.0 0.0.0.255
[R3-acl-basic-2000] quit
[R3] interface gi 0/0/1
[R3-GigabitEthernet0/0/1] nat outbound 2000

useful commands

[SW1] clear configuration interface gi 0/0/23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment