interface FastEthernet0/2
trunk on allowed:all dot1q:yes interface FastEthernet0/3
trunk on allowed:all dot1q:yes interface FastEthernet0/4 192.168.30.1 255.255.255.0 interface FastEthernet0/5 !
interface FastEthernet0/6 !
interface FastEthernet0/7
trunk on allowed:all dot1q:yes interface FastEthernet0/8
trunk on allowed:all dot1q:yes interface VLAN1 ip address
interface vlan 2
ip address 192.168.1.2 255.255.255.0 !
ip default gateway interface vlan 3
ip address 192.168.2.2 255.255.255.0 interface vlan 4
ip address 192.168.3.2 255.255.255.0 !
line con 0 password line vty 0 4 password
VTP operating mode : server VTP domain name : abc VTP password : abcd End
2)核心交换机F的配置信息 switch>en
switch#show run
Current configuration: !
version 12.0
service timestamps debug uptime service timestamps log uptime no service password-encryption !
21
( hostname !
enable secret $1$3Ws&^f enable password ! ! !
ip subnet-zero ! !
interface FastEthernet0/1
trunk on allowed:all dot1q:yes interface FastEthernet0/2
trunk on allowed:all dot1q:yes interface FastEthernet0/3 !
interface FastEthernet0/4 !
interface FastEthernet0/5 vlan :4
interface FastEthernet0/6 vlan :4
interface FastEthernet0/7 192.168.30.5 255.255.255.0 interface FastEthernet0/8 192.168.30.3 255.255.255.0 interface VLAN1 ip address
no ip directed-broadcast no ip route-cache !
ip default gateway
snmp-server engineID local 0000000902000004DDD1CA80
snmp-server community private RW snmp-server community public RO !
line con 0 password
line vty 0 4 password !
22
end
2. 防火墙的配置信息
router>en router#conf t
Enter configuration commands, one per line. End with CNTL/Z. router(config)#exit router#show run
Current configuration : 729 bytes !
version 12.2
service timestamps debug uptime service timestamps log uptime no service password-encryption !
hostname !
enable secret $1$3Ws&^f enable password !
ip routing ip subnet-zero !
ospf working
network 192.168.30.2 0.0.0.255 ! !
interface FastEthernet0/0
ip address 212.120.242.2 255.255.255.0 !
no ip mroute-cache half-duplex ! !
interface FastEthernet0/1
ip address 192.168.30.2 255.255.255.0 !
no ip mroute-cache duplex auto ! !
interface Serial0/0 ! !
no ip mroute-cache
23
!
shutdown !
interface Serial0/1 ! !
no ip mroute-cache !
shutdown !
ip classless
no ip http server ip pim bidir-enable !
ip nat inside source static |192.168.1.1 212.120.242.2|tcp 192.168.3.3 20 212.120.242.|tcp 192.168.3.3 20 212.120.242. !
password line aux 0 password login ! ! end
3. 接入交换机的配置信息 switch>en
switch#show run
Current configuration: !
version 12.0
service timestamps debug uptime service timestamps log uptime no service password-encryption !
hostname !
enable secret $1$3Ws&^f enable password ! ! !
ip subnet-zero !
24
!
interface FastEthernet0/1
trunk on allowed:all dot1q:yes interface FastEthernet0/2 vlan :2
interface FastEthernet0/3 vlan :3
interface FastEthernet0/4 !
interface FastEthernet0/5 !
interface FastEthernet0/6 !
interface FastEthernet0/7 !
interface FastEthernet0/8 !
interface VLAN1 ip address
no ip directed-broadcast no ip route-cache !
ip default gateway
snmp-server engineID local 0000000902000004DDD1CA80
snmp-server community private RW snmp-server community public RO !
line con 0 password line vty 0 4 password
VTP operating mode : client VTP domain name : abc VTP password : abcd end 25