Files
ContainerLab/clab-pe-exp-7/sw1/boot_config.txt
T
2026-05-02 19:17:31 +02:00

66 lines
1.1 KiB
Plaintext

hostname sw1
!
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
description clab-mgmt
no switchport
vrf forwarding clab-mgmt
ip address 172.20.20.2 255.255.255.0
ipv6 address 3FFF:172:20:20::2/64
!
interface Ethernet0/1
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 20,30
switchport mode trunk
!
interface Ethernet0/2
switchport access vlan 20
switchport mode access
!
interface Ethernet0/3
switchport access vlan 20
switchport mode access
!
interface Ethernet1/0
!
interface Ethernet1/1
switchport access vlan 30
switchport mode access
!
interface Ethernet1/2
!
interface Ethernet1/3
!
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