Академический Документы
Профессиональный Документы
Культура Документы
0/8
en
conf t
hostname r1
int f0/0
no shut
exit
int s0/0/0
no shut
exit
router ospf 1
end
wr
en
conf t
hostname r2
int f0/0
no shut
exit
int s0/0/0
no shut
exit
int s0/1/0
no shut
exit
router ospf 2
end
wr
en
conf t
hostname r3
int f0/0
no shut
exit
int s0/0/0
no shut
exit
router ospf 3
end
wr
2.eigrp 192.168.5.0/24
en
conf t
hostname r1
in f0/0
no shut
exit
int s0/0/0
no shut
exit
end
wr
en
conf t
hostname r2
in f0/0
no shut
exit
int s0/0/0
no shut
exit
int s0/1/0
no shut
exit
end
wr
en
conf t
hostname r3
in f0/0
no shut
exit
int s0/0/0
no shut
exit
end
wr
3.static 172.16.32.1/16
en
conf t
hostname r1
in f0/0
ip add 172.16.32.1 255.255.224.0
no shut
exit
int s0/0/0
ip add 172.16.128.1 255.255.224.0
no shut
exit
ip route 172.16.96.0 255.255.224.0 172.16.128.2
ip route 172.16..64.0 255.255.224.0 172.16. 128.2
ip route 172.16.160.0 255.255.224.0 172.16. 128.2
end
wr
en
conf t
hostname r2
in f0/0
no shut
exit
int s0/0/0
no shut
exit
int s0/1/0
no shut
exit
end
wr
en
conf t
hostname r3
in f0/0
no shut
exit
int s0/1/0
no shut
exit
end
wr
4.wan-ppp with chap(class b) default
en
conf t
hostname r1
int f0/0
no shut
exit
int s0/0/0
no shut
encap ppp
exit
end
wr
en
conf t
hostname r2
int f0/0
no shut
exit
int s0/0/0
no shut
encap ppp
exit
end
wr
5.Rip access-list 172.17.0.0 and 172.16.0.5 ftp
en
conf t
hostname R1
int f0/0
ip add 172.17.0.1 255.255.0.0
no shut
exit
int s0/0/0
ip add 172.18.0.1 255.255.0.0
no shut
exit
router rip
net 172.17.0.0
net 172.18.0.0
end
wr
en
conf t
hostname R2
int f0/0
ip add 172.16.0.1 255.255.0.0
no shut
exit
int s0/0/0
ip add 172.18.0.2 255.255.0.0
no shut
exit
router rip
net 172.17.0.0
net 172.18.0.0
exit
access-list 150 deny tcp 172.17.0.0 0.0.255.255
host 172.16.0.5 eq 21
access-list 150 permit ip any any
int f0/0
ip access-group 150 out
end
wr
Above dia for acl
6.ipv6 using eigrp
en
conf t
hostname r1
ipv6 unicast-routing
int f0/0
ipv6 add 2001::1/64
ipv6 eigrp 111
no shut
exit
int s0/0/0
ipv6 add 2003::1/64
ipv6 eigrp 111
no shut
exit
ipv6 router eigrp 111
eigrp router-id 1.1.1.1
end
wr
en
conf t
hostname r2
ipv6 unicast-routing
int f0/0
ipv6 add 2002::1/64
ipv6 eigrp 111
no shut
exit
int s0/0/0
ipv6 add 2003::2/64
ipv6 eigrp 111
no shut
exit
ipv6 router eigrp 111
eigrp router-id 2.2.2.2
end
wr
7.Nat
en
conf t
hostname R1
int f0/0
ip add 10.0.0.1 255.0.0.0
no shut
exit
int s0/0/0
ip add 200.0.0.1 255.255.255.0
no shut
exit
ip route 0.0.0.0 0.0.0.0 200.0.0.2
access-list 50 permit 10.0.0.0 0.255.255.255
ip nat inside source list 50 int s0/0
int f0/0
ip nat in
int s0/0/0
ip nat out
exit
end
wr
en
conf t
hostname R2
int f0/0
ip add 192.168.1.1 255.255.255.0
no shut
exit
int s0/0/0
ip add 200.0.0.2 255.255.255.0
no shut
exit
ip route 0.0.0.0 0.0.0.0 200.0.0.1
ip nat inside source static 192.168.1.5 200.0.0.2
int f0/0
ip nat in
int s0/0/0
ip nat out
exit
end
wr
8.dhcp(class c)
en
conf t
hostname R1
int f0/0
ip add 192.168.1.1 255.255.255.0
no shut
exit
ip dhcp excluded-address 192.168.1.1 192.168.1.10
ip dhcp pool scope1
default-router 192.168.1.1
dns-server 192.168.1.3
network 192.168.1.0 255.255.255.0
end
wr
9.password
en
conf t
hostname R1
int f0/0
ip add 172.16.0.1 255.255.0.0
no shut
exit
int s0/0/0
ip add 172.18.0.1 255.255.0.0
no shut
exit
router eigrp 111
net 172.16.0.0
net 172.18.0.0
end
wr
conft
enable password MANGO
enable secret BINGO
line console 0
no login
password TANGO
login
exit
line vty 0 15
no login
password JANGO
login
end
wr
exit
en
conf t
hostname R2
int f0/0
ip add 172.17.0.1 255.255.0.0
no shut
exit
int s0/0
ip add 172.18.0.2 255.255.0.0
no shut
exit
router eigrp 111
net 172.17.0.0
net 172.18.0.0
end
wr
conf t
enable password MANGO
enable secret BINGO
line console 0
no login
password TANGO
login
exit
line vty 0 15
no login
password JANGO
login
end
wr
exit
en
conf t
hostname client1
vtp domain example.com
vtp password testing
vtp mode client
vlan 2
int f0/2
switchport mode access
switchport access vlan 2
exit
int f0/3
switchport mode access
switchport access vlan 2
exit
exit
wr
en
conf t
hostname client2
vtp domain example.com
vtp password testing
vtp mode client
vlan 2
int f0/2
switchport mode access
switchport access vlan 3
exit
int f0/3
switchport mode access
switchport access vlan 3
exit
exit
wr