Company

hostname Company

#ip dhcp pool AG1LAN1

 network 172.16.0.0 255.255.255.0

 default-router 172.16.0.1

 dns-server 172.18.0.98

#ip dhcp pool AG1LAN2

 network 172.16.1.0 255.255.255.0

 default-router 172.16.1.1

 dns-server 172.18.0.98

#ip dhcp pool AG2

 network 172.17.0.0 255.255.255.0

 default-router 172.17.0.1

 dns-server 172.18.0.98

#ip dhcp pool VLAN20

 network 172.18.0.64 255.255.255.224

 default-router 172.18.0.65

 dns-server 172.18.0.98

#ip dhcp pool VLAN22

 network 172.18.0.0 255.255.255.192

 default-router 172.18.0.1

 dns-server 172.18.0.98

#username Agency1 password 0 cisco

username Agency2 password 0 cisco

spanning-tree mode pvst

#interface FastEthernet0/0

no shutdown

#interface FastEthernet0/0.10

 encapsulation dot1Q 10

 ip address 172.18.0.97 255.255.255.240

no shutdown

#interface FastEthernet0/0.20

 encapsulation dot1Q 20

 ip address 172.18.0.65 255.255.255.224

no shutdown

#interface FastEthernet0/0.22

 encapsulation dot1Q 22

 ip address 172.18.0.1 255.255.255.192

no shutdown

#interface Serial0/0/0

 ip address 192.168.0.5 255.255.255.252

 encapsulation ppp

 ppp authentication chap

 clock rate 64000

no shutdown

#interface Serial0/2/0

 ip address 90.90.90.2 255.255.255.252

 clock rate 64000

no shutdown

#interface Serial0/2/1

 ip address 192.168.0.1 255.255.255.252

 encapsulation ppp

 ppp authentication chap

 clock rate 64000

no shutdown

#router ospf 100

 log-adjacency-changes

 network 192.168.0.0 0.0.0.3 area 0

 network 192.168.0.4 0.0.0.3 area 0

 network 172.18.0.0 0.0.0.255 area 0

 default-information originate

#ip route 0.0.0.0 0.0.0.0 90.90.90.1

Bạn đang đọc truyện trên: AzTruyen.Top

Tags: