58 lines
834 B
Plaintext
58 lines
834 B
Plaintext
hostname sw2
|
|
!
|
|
no aaa new-model
|
|
!
|
|
ip domain name lab
|
|
!
|
|
ip cef
|
|
!
|
|
ipv6 unicast-routing
|
|
!
|
|
no ip domain lookup
|
|
!
|
|
username admin privilege 15 secret admin
|
|
!
|
|
vrf definition clab-mgmt
|
|
description clab-mgmt
|
|
address-family ipv4
|
|
!
|
|
address-family ipv6
|
|
!
|
|
!
|
|
interface Ethernet0/0
|
|
|
|
no switchport
|
|
|
|
vrf forwarding clab-mgmt
|
|
description clab-mgmt
|
|
ip address 172.20.20.8 255.255.255.0
|
|
ipv6 address 3fff:172:20:20::8/64
|
|
no shutdown
|
|
!
|
|
interface Ethernet0/1
|
|
no shutdown
|
|
!
|
|
interface Ethernet0/2
|
|
no shutdown
|
|
!
|
|
interface Ethernet0/3
|
|
no shutdown
|
|
!
|
|
interface Ethernet1/1
|
|
no shutdown
|
|
!
|
|
ip forward-protocol nd
|
|
!
|
|
ip route vrf clab-mgmt 0.0.0.0 0.0.0.0 Ethernet0/0 172.20.20.1
|
|
ipv6 route vrf clab-mgmt ::/0 Ethernet0/0 3fff:172:20:20::1
|
|
!
|
|
ip ssh version 2
|
|
crypto key generate rsa modulus 2048
|
|
!
|
|
line vty 0 4
|
|
login local
|
|
transport input ssh
|
|
!
|
|
|
|
end
|