Master banner
096.55555.69
096.888.6300
0915.183535
0915.363436

Bài lab cấu hình static route TN 21/08/2016

Bài lab cấu hình static route TN 21/08/2016

 

Đề bài:

 

bai lab static route tn 210816

 

Bài làm

Switch>

Switch>

Switch>en

Switch>enable

Switch#cn

Switch#conf t

Enter configuration commands, one per line. End with CNTL/Z.

Switch(config)#hos

Switch(config)#hostname S1

S1(config)#ena

S1(config)#enable pas

S1(config)#enable password cisco

S1(config)#li

S1(config)#line co

S1(config)#line console 0

S1(config-line)#pas

S1(config-line)#password cisco

S1(config-line)#login

S1(config-line)#exit

S1(config)#li

S1(config)#line vt

S1(config)#line vty 0 4

S1(config-line)#pas

S1(config-line)#password cisco

S1(config-line)#login

S1(config-line)#exit

S1(config)#int f0/2

S1(config-if)#no sw

S1(config-if)#no switchport

S1(config-if)#

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to down

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to up

S1(config-if)#ip add

S1(config-if)#ip address 192.168.2.11 255.255.255.0

S1(config-if)#exit

S1(config)#ip rou

S1(config)#ip rout

S1(config)#ip routing

S1(config)#ip routing

S1(config)#ip route

S1(config)#ip route 192.168.3.0 255.255.255.0 192.168.2.12

S1(config)#ip route 192.168.4.0 255.255.255.0 192.168.2.12

S1(config)#ip route 192.168.5.0 255.255.255.0 192.168.2.12

S1(config)#ip route 0.0.0.0 0.0.0.0 192.168.2.12

S1(config)#exit

S1#

%SYS-5-CONFIG_I: Configured from console by console

S1#wr

Building configuration…

[OK]

S1#show ip rou

S1#show ip route

Codes: C – connected, S – static, I – IGRP, R – RIP, M – mobile, B – BGP

D – EIGRP, EX – EIGRP external, O – OSPF, IA – OSPF inter area

N1 – OSPF NSSA external type 1, N2 – OSPF NSSA external type 2

E1 – OSPF external type 1, E2 – OSPF external type 2, E – EGP

i – IS-IS, L1 – IS-IS level-1, L2 – IS-IS level-2, ia – IS-IS inter area

* – candidate default, U – per-user static route, o – ODR

P – periodic downloaded static route

Gateway of last resort is 192.168.2.12 to network 0.0.0.0

C 192.168.2.0/24 is directly connected, FastEthernet0/2

S 192.168.3.0/24 [1/0] via 192.168.2.12

S 192.168.4.0/24 [1/0] via 192.168.2.12

S 192.168.5.0/24 [1/0] via 192.168.2.12

S* 0.0.0.0/0 [1/0] via 192.168.2.12

S1#

Switch>

Switch>

Switch>en

Switch#conf t

Enter configuration commands, one per line. End with CNTL/Z.

Switch(config)#hos

Switch(config)#hostname S2

S2(config)#ena

S2(config)#enable pas

S2(config)#enable password cisco

S2(config)#li

S2(config)#line con

S2(config)#line console 0

S2(config-line)#pa

S2(config-line)#pas

S2(config-line)#password cisco

S2(config-line)#login

S2(config-line)#exit

S2(config)#li

S2(config)#line vty 0 4

S2(config-line)#pas

S2(config-line)#password cisco

S2(config-line)#login

S2(config-line)#exit

S2(config)#ip routi

S2(config)#ip routing

S2(config)#int f0/1

S2(config-if)#no sw

S2(config-if)#no switchport

S2(config-if)#

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to down

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up

S2(config-if)#ip add 192.168.2.12 255.255.255.0

S2(config-if)#exit

S2(config)#int f0/3

S2(config-if)#no sw

S2(config-if)#no switchport

S2(config-if)#

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state to down

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state to up

S2(config-if)#ip add 192.168.4.12 255.255.255.0

S2(config-if)#exit

S2(config)#int f0/4

S2(config-if)#no sw

S2(config-if)#no switchport

S2(config-if)#ip add 200.200.200.12 255.255.255.0

S2(config-if)#exit

S2(config)#do wr

Building configuration…

[OK]

S2(config)#

Switch>

Switch>

Switch>en

Switch#conf t

Enter configuration commands, one per line. End with CNTL/Z.

Switch(config)#hos

Switch(config)#hostname S2

S2(config)#ena

S2(config)#enable pas

S2(config)#enable password cisco

S2(config)#li

S2(config)#line con

S2(config)#line console 0

S2(config-line)#pa

S2(config-line)#pas

S2(config-line)#password cisco

S2(config-line)#login

S2(config-line)#exit

S2(config)#li

S2(config)#line vty 0 4

S2(config-line)#pas

S2(config-line)#password cisco

S2(config-line)#login

S2(config-line)#exit

S2(config)#ip routi

S2(config)#ip routing

S2(config)#int f0/1

S2(config-if)#no sw

S2(config-if)#no switchport

S2(config-if)#

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to down

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up

S2(config-if)#ip add 192.168.2.12 255.255.255.0

S2(config-if)#exit

S2(config)#int f0/3

S2(config-if)#no sw

S2(config-if)#no switchport

S2(config-if)#

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state to down

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state to up

S2(config-if)#ip add 192.168.4.12 255.255.255.0

S2(config-if)#exit

S2(config)#int f0/4

S2(config-if)#no sw

S2(config-if)#no switchport

S2(config-if)#ip add 200.200.200.12 255.255.255.0

S2(config-if)#exit

S2(config)#do wr

Building configuration…

[OK]

S2(config)#exit

S2#

%SYS-5-CONFIG_I: Configured from console by console

S2#show ip rou

S2#show ip route

Codes: C – connected, S – static, I – IGRP, R – RIP, M – mobile, B – BGP

D – EIGRP, EX – EIGRP external, O – OSPF, IA – OSPF inter area

N1 – OSPF NSSA external type 1, N2 – OSPF NSSA external type 2

E1 – OSPF external type 1, E2 – OSPF external type 2, E – EGP

i – IS-IS, L1 – IS-IS level-1, L2 – IS-IS level-2, ia – IS-IS inter area

* – candidate default, U – per-user static route, o – ODR

P – periodic downloaded static route

Gateway of last resort is not set

C 192.168.2.0/24 is directly connected, FastEthernet0/1

C 192.168.4.0/24 is directly connected, FastEthernet0/3

S2#conf t

Enter configuration commands, one per line. End with CNTL/Z.

S2(config)#ip route 192.168.1.0 255.255.255.0 192.168.2.11

S2(config)#ip route 192.168.5.0 255.255.255.0 192.168.4.13

S2(config)#ip route 0.0.0.0 0.0.0.0 f0/4 200.200.200.1

^

% Invalid input detected at ‘^’ marker.

S2(config)#ip route 0.0.0.0 0.0.0.0 f0/4

S2(config)#do wr

Building configuration…

[OK]

S2(config)#exit

S2#

%SYS-5-CONFIG_I: Configured from console by console

S2#show ip route

Codes: C – connected, S – static, I – IGRP, R – RIP, M – mobile, B – BGP

D – EIGRP, EX – EIGRP external, O – OSPF, IA – OSPF inter area

N1 – OSPF NSSA external type 1, N2 – OSPF NSSA external type 2

E1 – OSPF external type 1, E2 – OSPF external type 2, E – EGP

i – IS-IS, L1 – IS-IS level-1, L2 – IS-IS level-2, ia – IS-IS inter area

* – candidate default, U – per-user static route, o – ODR

P – periodic downloaded static route

Gateway of last resort is not set

S 192.168.1.0/24 [1/0] via 192.168.2.11

C 192.168.2.0/24 is directly connected, FastEthernet0/1

C 192.168.4.0/24 is directly connected, FastEthernet0/3

S 192.168.5.0/24 [1/0] via 192.168.4.13

S2#

%LINK-5-CHANGED: Interface FastEthernet0/4, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/4, changed state to up

S2#show ip route

Codes: C – connected, S – static, I – IGRP, R – RIP, M – mobile, B – BGP

D – EIGRP, EX – EIGRP external, O – OSPF, IA – OSPF inter area

N1 – OSPF NSSA external type 1, N2 – OSPF NSSA external type 2

E1 – OSPF external type 1, E2 – OSPF external type 2, E – EGP

i – IS-IS, L1 – IS-IS level-1, L2 – IS-IS level-2, ia – IS-IS inter area

* – candidate default, U – per-user static route, o – ODR

P – periodic downloaded static route

Gateway of last resort is 0.0.0.0 to network 0.0.0.0

S 192.168.1.0/24 [1/0] via 192.168.2.11

C 192.168.2.0/24 is directly connected, FastEthernet0/1

C 192.168.4.0/24 is directly connected, FastEthernet0/3

S 192.168.5.0/24 [1/0] via 192.168.4.13

C 200.200.200.0/24 is directly connected, FastEthernet0/4

S* 0.0.0.0/0 is directly connected, FastEthernet0/4

S2#

 

Switch>

Switch>

Switch>en

Switch#conf t

Enter configuration commands, one per line. End with CNTL/Z.

Switch(config)#hos

Switch(config)#hostname S3

S3(config)#ena

S3(config)#enable pas

S3(config)#enable password cisco

S3(config)#li

S3(config)#line con

S3(config)#line console 0

S3(config-line)#pas

S3(config-line)#password cisco

S3(config-line)#exit

S3(config)#li

S3(config)#line vt

S3(config)#line vty 0 4

S3(config-line)#pas

S3(config-line)#password cisco

S3(config-line)#exit

S3(config)#ip routi

S3(config)#ip routing

S3(config)#ip route 192.168.1.0 255.255.255.0 192.168.4.12

S3(config)#ip route 192.168.2.0 255.255.255.0 192.168.4.12

S3(config)#ip route 192.168.3.0 255.255.255.0 192.168.4.12

S3(config)#ip route 0.0.0.0 0.0.0.0 192.168.4.12

S3(config)#int f0/1

S3(config-if)#no sw

S3(config-if)#no switchport

S3(config-if)#

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to down

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up

S3(config-if)#ip add 192.168.4.13 255.255.255.0

S3(config-if)#exit

S3(config)#exit

S3#

%SYS-5-CONFIG_I: Configured from console by console

wr

Building configuration…

[OK]

S3#show ip rou

S3#show ip route

Codes: C – connected, S – static, I – IGRP, R – RIP, M – mobile, B – BGP

D – EIGRP, EX – EIGRP external, O – OSPF, IA – OSPF inter area

N1 – OSPF NSSA external type 1, N2 – OSPF NSSA external type 2

E1 – OSPF external type 1, E2 – OSPF external type 2, E – EGP

i – IS-IS, L1 – IS-IS level-1, L2 – IS-IS level-2, ia – IS-IS inter area

* – candidate default, U – per-user static route, o – ODR

P – periodic downloaded static route

Gateway of last resort is 192.168.4.12 to network 0.0.0.0

S 192.168.1.0/24 [1/0] via 192.168.4.12

S 192.168.2.0/24 [1/0] via 192.168.4.12

S 192.168.3.0/24 [1/0] via 192.168.4.12

C 192.168.4.0/24 is directly connected, FastEthernet0/1

S* 0.0.0.0/0 [1/0] via 192.168.4.12

S3#

S3#ping 192.168.2.11

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 192.168.2.11, timeout is 2 seconds:

.!!!!

Success rate is 80 percent (4/5), round-trip min/avg/max = 0/0/0 ms

S3#

 

Nhắn tin qua Facebook