Вы находитесь на странице: 1из 23

ospf 10.0.0.

0/8
en

conf t

hostname r1

int f0/0

ip add 10.32.0.1 255.224.0.0

no shut

exit

int s0/0/0

ip add 10.128.0.1 255.224.0.0

no shut

exit

router ospf 1

net 10.32.0.0 0.31.255.255 area 0

net 10.128.0.0 0.31.255.255 area 0

end

wr

en

conf t

hostname r2

int f0/0

ip add 10.64.0.1 255.224.0.0

no shut

exit

int s0/0/0

ip add 10.128.0.2 255.224.0.0

no shut
exit

int s0/1/0

ip add 10.160.0.1 255.224.0.0

no shut

exit

router ospf 2

net 10.64.0.0 0.31.255.255 area 0

net 10.128.0.0 0.31.255.255 area 0

net 10.160.0.0 0.31.255.255 area 0

end

wr

en

conf t

hostname r3

int f0/0

ip add 10.96.0.1 255.224.0.0

no shut

exit

int s0/0/0

ip add 10.160.0.2 255.224.0.0

no shut

exit

router ospf 3

net 10.96.0.0 0.31.255.255 area 0

net 10.160.0.0 0.31.255.255 area 0

end

wr
2.eigrp 192.168.5.0/24
en

conf t

hostname r1

in f0/0

ip add 192.168.5.33 255.255.255.224

no shut

exit

int s0/0/0

ip add 192.168.5.129 255.255.255.224

no shut

exit

router eigrp 111

net 192.168.5.32 255.255.255.224

net 192.168.5.128 255.255.255.224

end

wr

en

conf t

hostname r2

in f0/0

ip add 192.168.5.65 255.255.255.224

no shut

exit

int s0/0/0

ip add 192.168.5.130 255.255.255.224

no shut

exit
int s0/1/0

ip add 192.168.5.161 255.255.255.224

no shut

exit

router eigrp 111

net 192.168.5.64 255.255.255.224

net 192.168.5.128 255.255.255.224

net 192.168.5.160 255.255.255.224

end

wr

en

conf t

hostname r3

in f0/0

ip add 192.168.5.97 255.255.255.224

no shut

exit

int s0/0/0

ip add 192.168.5.162 255.255.255.224

no shut

exit

router eigrp 111

net 192.168.5.96 255.255.255.224

net 192.168.5.160 255.255.255.224

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

ip add 172.16.64.1 255.255.224.0

no shut

exit
int s0/0/0

ip add 172.16.128.2 255.255.224.0

no shut

exit

int s0/1/0

ip add 172.16.160.1 255.255.224.0

no shut

exit

ip route 172.16.32.0 255.255.224.0 172.16.128.1

ip route 172.16.96.0 255.255.224.0 172.16.160.2

end

wr

en

conf t

hostname r3

in f0/0

ip add 172.16.96.1 255.255.224.0

no shut

exit

int s0/1/0

ip add 172.16.160.2 255.255.224.0

no shut

exit

ip route 172.16.128.0 255.255.224.0 172.16.160.1

ip route 172.16.32.0 255.255.224.0 172.16.160.1

ip route 172.16.64.0 255.255.224.0 172.16.160.1

end

wr
4.wan-ppp with chap(class b) default

en

conf t

hostname r1

int f0/0

ip add 172.20.0.1 255.255.0.0

no shut

exit

int s0/0/0

ip add 172.24.0.1 255.255.0.0

no shut

encap ppp

ppp auth chap

exit

username r2 password topper


ip route 0.0.0.0 0.0.0.0 172.24.0.2

end

wr

en

conf t

hostname r2

int f0/0

ip add 172.22.0.1 255.255.0.0

no shut

exit

int s0/0/0

ip add 172.24.0.2 255.255.0.0

no shut

encap ppp

ppp auth chap

exit

username r1 password topper

ip route 0.0.0.0 0.0.0.0 172.24.0.1

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

10.vtp and vlan


en
conf t
hostname server
vtp domain example.com
vtp password testing
vtp mode server
vlan 2
name HR
exit
vlan 3
name sales
exit
int f0/1
switchport mode trunk
exit
int f0/2
switchport mode trunk
exit
exit
wr

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

Вам также может понравиться