Enter passWord: enable Enter password: config t set system name Bluestudy set time 10/30/2000 9:30:00 set password set enablepass set interface sc0 10.1.0.2/16 set ip route default 10.1.0.1 set ip dns server 10.1.0.100 set ip dns domain bluestudy.com set ip dns enable set vtp domain bluestudy mode server set vlan 1 name Bluestudy 1 set vlan 2 name Bluestudy 2 set vlan 3 name Bluestudy 3 set vlan 4 name Bluestudy 4 set vlan 5 name Bluestudy 5 set vlan 6 name Bluestudy 6 set vlan 7 name Bluestudy 7 set vlan 8 name Bluestudy 8 set port negotiation 2/1-8 enable set port name 2/1-8 GEC 802.1Q Trunk set trunk 2/1-8 desirable dot1q set port speed 2/1-8 1000 set vlan 1 3/1-48
enable) session 15 Trying Router-15... Connected to Router-15. Escape character is '^]'.
enable configure terminal hostname bluestudy enable password password line vty 0 6 password secret_word ip domain-name bluestudy.com ip name-server 10.1.0.100 interface vlan 1 ip address 10.1.0.1 255.255.0.0 no shutdown interface vlan 2 ip address 10.2.0.1 255.255.0.0 no shutdown interface vlan 3 ip address 10.3.0.1 255.255.0.0 no shutdown interface vlan 4 ip address 10.4.0.1 255.255.0.0 no shutdown interface vlan 5 ip address 10.5.0.1 255.255.0.0 no shutdown interface vlan 6 ip address 10.6.0.1 255.255.0.0 no shutdown interface vlan 7 ip address 10.7.0.1 255.255.0.0 no shutdown interface vlan 8 ip address 10.8.0.1 255.255.0.0 no shutdown router rip version 2 network 10.0.0.0 ip route 0.0.0.0 0.0.0.0 10.2.0.12 ip route 192.168.2.0 255.255.255.0 10.2.0.13 ip route 192.168.3.0 255.255.255.240 10.2.0.11 ip route 192.168.4.0 255.255.255.0 10.2.0.11 ip route 192.168.5.0 255.255.255.0 10.2.0.11 ip route 192.168.6.0 255.255.255.0 10.2.0.11 copy running-config startup-config Building configuration... [OK] 这里给出的是单纯的命令行,略去了一些默认状况的设置.
Catalyst 3500 配置
version 12.0 no service pad service timestamps debug uptime service timestamps log uptime service password-encryption ! hostname bluestudy ! enable password password ! username bluestudy password password username test password password ! 省略端口的显示 !
interface GigabitEthernet0/1 switchport trunk encapsulation dot1q switchport mode trunk ! interface GigabitEthernet0/2 ! interface VLAN1 ip address 10.1.0.4 255.255.0.0 ip helper-address 10.1.0.100 ip directed-broadcast no ip route-cache ! ip default-gateway 10.1.0.1
interface Ethernet1/2(与1900 A对接) switchport access VLAN 3 no shut
!
interface Ethernet1/3(与1900 B对接) switchport access VLAN 4 no shut
! snmp-server engineID local 000000090200000216BE4E80 snmp-server community public RO snmp-server community PRivate RW snmp-server chassis-id 0x17 (打开简单的网络治理,便于以后,Cisco 网管软件识别和治理) ! line con 0 login local transport input none stopbits 1 line vty 0 4 login local line vty 5 15 login ! end
interface Ethernet0/1(与3500对接) switchport trunk encapsulation dot1q switchport mode trunk ! interface VLAN1 ip address 10.1.0.3 255.255.0.0 ip helper-address 10.1.0.100 ip directed-broadcast no ip route-cache ! ip default-gateway 10.1.0.1
!
interface Ethernet0/2(与1900 C对接) switchport access VLAN 5 no shut
!
interface Ethernet0/3(与1900 D对接) switchport access VLAN 6 no shut
! snmp-server engineID local 000000090200000216BE4E80 snmp-server community public RO snmp-server community private RW snmp-server chassis-id 0x17
! line con 0 login local transport input none stopbits 1 line vty 0 4 login local line vty 5 15 login ! end
Catalyst 1900 配置
对于1900的配置就相对轻易得多了
只需在enable 状态下键入 Setup 就会进入配置向导
给出交换机的
IP地址:10.3.0.5
掩码:255.255.0.0
网关:10.3.0.1
就可以了,另外应该打开简单的网络治理协议SNMP
snmp-server community public RO snmp-server community private RW