0% found this document useful (0 votes)
32 views6 pages

Lab 12 Static

Uploaded by

tasneem12002
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
32 views6 pages

Lab 12 Static

Uploaded by

tasneem12002
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

Lab 12 : static

In R1
Router>en
Router#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#host R1
R1(config)#inter se 3/0
R1(config-if)#no shut

R1(config-if)#
%LINK-5-CHANGED: Interface Serial3/0, changed state to up

R1(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial3/0, changed state to up
ip add 13.1.1.2 255.255.255.0
R1(config-if)#ex
R1(config)#inter fa 0/0
R1(config-if)#no shut
R1(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

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

R1(config-if)#ip add 5.1.1.2 255.255.255.0


R1(config-if)#ex
R1(config)#inter se 2/0
R1(config-if)#no shut

R1(config-if)#
%LINK-5-CHANGED: Interface Serial2/0, changed state to up

R1(config-if)#12
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial2/0, changed state to up
^
% Invalid input detected at '^' marker.

R1(config-if)#ip add 12.1.1.2 255.255.255.0


R1(config-if)#ex
R1(config)#inter fa 1/0
R1(config-if)#no shut

R1(config-if)#
%LINK-5-CHANGED: Interface FastEthernet1/0, changed state to up

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

R1(config-if)#ip add 20.1.1.1 255.255.255.0


R1(config-if)#ex
R1(config)#ip rout 7.1.1.0 255.255.255.0 12.1.1.2
%Invalid next hop address (it's this router)
R1(config)#ip rout 7.1.1.0 255.255.255.0 12.1.1.1
R1(config)#ex
R1#
%SYS-5-CONFIG_I: Configured from console by console

R1#ping 7.1.1.1

Type escape sequence to abort.


Sending 5, 100-byte ICMP Echos to 7.1.1.1, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5)

R1#show ip rout
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

5.0.0.0/24 is subnetted, 1 subnets


C 5.1.1.0 is directly connected, FastEthernet0/0
7.0.0.0/24 is subnetted, 1 subnets
S 7.1.1.0 [1/0] via 12.1.1.1
12.0.0.0/24 is subnetted, 1 subnets
C 12.1.1.0 is directly connected, Serial2/0
13.0.0.0/24 is subnetted, 1 subnets
C 13.1.1.0 is directly connected, Serial3/0
20.0.0.0/24 is subnetted, 1 subnets
C 20.1.1.0 is directly connected, FastEthernet1/0

In R3
Router>en
Router#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#host R3
R3(config)#inter fas 1/0
R3(config-if)#no shut

R3(config-if)#
%LINK-5-CHANGED: Interface FastEthernet1/0, changed state to up

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


R3(config-if)#ip add 7.1.1.1 255.255.255.0
R3(config-if)#ex
R3(config)#inter se 2/0
R3(config-if)#no shut

%LINK-5-CHANGED: Interface Serial2/0, changed state to down


R3(config-if)#ip add 8.1.1.1 255.255.255.0
R3(config-if)#ex
R3(config)#inter se 3/0
R3(config-if)#no shut

%LINK-5-CHANGED: Interface Serial3/0, changed state to down


R3(config-if)#ip add 9.1.1.1 255.255.255.0
R3(config-if)#
%LINK-5-CHANGED: Interface Serial3/0, changed state to up

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

%LINK-5-CHANGED: Interface Serial2/0, changed state to up

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

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

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

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

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

R3 con0 is now available


Press RETURN to get started.

R3>en
R3#ping 9.1.1.1

Type escape sequence to abort.


Sending 5, 100-byte ICMP Echos to 9.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 2/6/16 ms

R3#ping 20.1.1.1

Type escape sequence to abort.


Sending 5, 100-byte ICMP Echos to 20.1.1.1, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5)

R3#config t
Enter configuration commands, one per line. End with CNTL/Z.
R3(config)#ip rout 20.1.1.0 255.255.255.0 9.1.1.2
R3(config)#ex
R3#
%SYS-5-CONFIG_I: Configured from console by console
R3#show ip rout
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

7.0.0.0/24 is subnetted, 1 subnets


C 7.1.1.0 is directly connected, FastEthernet1/0
8.0.0.0/24 is subnetted, 1 subnets
C 8.1.1.0 is directly connected, Serial2/0
9.0.0.0/24 is subnetted, 1 subnets
C 9.1.1.0 is directly connected, Serial3/0
20.0.0.0/24 is subnetted, 1 subnets
S 20.1.1.0 [1/0] via 9.1.1.2

R3#ping 20.1.1.1

Type escape sequence to abort.


Sending 5, 100-byte ICMP Echos to 20.1.1.1, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5)

You might also like