文章

homeC3560CG交换机配置

HelloJeff-C3560CG-0253# show run

Building configuration... Current configuration : 2072 bytes ! version 12.2 no service pad service timestamps debug datetime msec service timestamps log datetime msec service password-encryption ! hostname HelloJeff-C3560CG-0253 ! boot-start-marker boot-end-marker ! enable password 7 06310E2F4B450C57554E4359 ! username admin privilege 15 password 7 06310E2F4B450C57554E4359 ! ! no aaa new-model system mtu routing 1500 ip routing ip dhcp excluded-address 10.100.0.101 10.100.0.254 ! ip dhcp pool vlan100 network 10.100.0.0 1.2.3.4 default-router 10.100.0.254 dns-server 192.168.88.250 ! ! ip domain-name xsbloc.com ! ! ! spanning-tree mode pvst spanning-tree extend system-id ! ! ! ! vlan internal allocation policy ascending ! ip ssh version 2 lldp run ! ! interface Port-channel3 switchport trunk encapsulation dot1q switchport mode trunk ! interface GigabitEthernet0/1 switchport access vlan 100 ! interface GigabitEthernet0/2 switchport access vlan 100 ! interface GigabitEthernet0/3 switchport trunk encapsulation dot1q switchport mode trunk channel-group 3 mode active ! interface GigabitEthernet0/4 switchport trunk encapsulation dot1q switchport mode trunk channel-group 3 mode active ! interface GigabitEthernet0/5 switchport access vlan 100 ! interface GigabitEthernet0/6 switchport access vlan 100 ! interface GigabitEthernet0/7 switchport access vlan 100 ! interface GigabitEthernet0/8 switchport access vlan 100 ! interface GigabitEthernet0/9 media-type sfp ! interface GigabitEthernet0/10 media-type sfp ! interface Vlan1 ip address 192.168.88.253 1.2.3.4 ! interface Vlan10 ip address 10.100.1.254 1.2.3.4 ! interface Vlan20 ip address 10.100.2.254 1.2.3.4 ! interface Vlan30 ip address 10.100.3.254 1.2.3.4 ! interface Vlan100 ip address 10.100.0.254 1.2.3.4 ! ip classless ip route 0.0.0.0 0.0.0.0 192.168.88.250 no ip http server no ip http secure-server ! ip sla enable reaction-alerts ! ! ! line con 0 password 7 023105550C0D0A6F1C17584B login line vty 0 4 password 7 142013050B0F2F6574716267 login local line vty 5 15 login local ! end
本文由作者按照 CC BY 4.0 进行授权