LAN WAN Laboratory 08&09

Page 1


.

.

.

.

Local and Wide Area Networks Laboratory 7 Open Shortest Path First (OSPF) 1. 2.

Router OSPF

1 1.1

OSPF

Area 1

1 1.2

Pc X, Pc Y Host Pc X Pc Y Pc Z

*

1.3

IP address 172.[x].0.__ 172.[x].2.__ 192.168.[z].__

PC

Subnet Mask 255.255.254.0 255.255.255.128 255.255.255.0

First Usable Host Address

startup-config

Pc Z

Default Gateway 172.[x].___.___ 172.[x].2.___ 192.168.[z].___

Default Gateway Last Usable Host Address

startup-config

Router>enable Router#erase startup-config Router#reload

1 January 2013

1/6

Local & Wide Area Networks Laboratory


.

1.4

.

Interface type

.

.

Serial

1.5

Router#show controllers Serial 0/0 | Serial 0 | Serial 0/0/0 Router#show controllers Serial 0/1 | Serial 1 | Serial 0/0/1

1.5 Router name Udon

Bangkok Phuket

1.6

Interface Loopback0 S0/1 Fa0/0 S0/0 S0/1 Fa0/0 S0/0 S0/1 Fa0/0 S0/0

ping

1.7

Interface Type -

Pc X

Network ID 10.[x].[x].0/30 192.168.[y].8/30 172.[x].0.0/23 172.[x].2.128/30 172.[x].2.128/30 172.[x].2.0/25 192.168.[y].4/30 192.168.[y].4/30 192.168.[z].0/24 192.168.[y].8/30

10.[x].[x].1

10.[x].[x].1 192.168.[y].10 172.[x].___.___ 172.[x].2.129 172.[x].2.130 172.[x].2.___ 192.168.[y].5 192.168.[y].6 192.168.[z].___ 192.168.[y].9

show interface loopback 0

Serial

FastEthernet0/0

IP address

ping

Serial0/0

Serial

Serial0/1

Udon Bangkok Phuket 1 January 2013

2/6

Local & Wide Area Networks Laboratory


.

1.8

Routing protocol Udon(config)# router Udon(config-router)# Udon(config-router)# Udon(config-router)# Udon(config-router)# Udon(config-router)# Udon(config-router)# Udon(config)# exit

1.9

Routing protocol

.

.

Udon ospf [x] network 10.[x].[x].0 0.0.0.3 area 0 network 172.[x].0.0 0.0.1.255 area 0 network 172.[x].2.128 0.0.0.3 area 0 network 192.168.[y].8 0.0.0.3 area 0 log-adjacency-changes exit

Bangkok

Bangkok(config)# router ospf [y] Bangkok(config-router)# network 172.[x].2.0 0.0.0.127 area 0 Bangkok(config-router)# network 172.[x].2.128 0.0.0.3 area 0 Bangkok(config-router)# network 192.168.[y].4 0.0.0.3 area 0 Bangkok(config-router)# log-adjacency-changes Bangkok(config-router)# exit Bangkok(config)# exit

1.10

Routing protocol

Phuket

Phuket(config)# router ospf [z] Phuket(config-router)# network 192.168.[y].4 0.0.0.3 area 0 Phuket(config-router)# network 192.168.[y].8 0.0.0.3 area 0 Phuket(config-router)# network 192.168.[z].0 0.0.0.255 area 0 Phuket(config-router)# log-adjacency-changes Phuket(config-router)# exit Phuket(config)# exit

1.11

show ip route IP address Interface

1 January 2013

3/6

Local & Wide Area Networks Laboratory

.


.

1.12

ping

.

Pc

1.13

show ip eigrp interface

1.14

show ip ospf neighbor

1.15

show ip ospf neighbor detail

1 January 2013

.

.

Pc

Pc

ping

4/6

Local & Wide Area Networks Laboratory


.

2 2.1

OSPF

.

.

Cost 1

2.1.1

Cost Udon

Udon(config)# interface serial 0/0 Udon(config-if)# ip ospf cost 64 Udon(config-if)# exit Udon(config)# interface serial 0/1 Udon(config-if)# bandwidth 64 Udon(config-if)# exit Udon(config)# exit

2.1.2

Bangkok Bangkok(config)# interface serial 0/0 Bangkok(config-if)# bandwidth 2048 Bangkok(config-if)# exit Bangkok(config)# interface serial 0/1 Bangkok(config-if)# ip ospf cost 64 Bangkok(config-if)# exit Bangkok(config)# exit

2.1.3

Phuket Phuket(config)# interface serial 0/0 Phuket(config-if)# ip ospf cost 1562 Phuket(config-if)# exit Phuket(config)# interface serial 0/1 Phuket(config-if)# bandwidth 2048 Phuket(config-if)# exit Phuket(config)# exit

2.2

show ip route IP Address Interface

1 January 2013

5/6

Local & Wide Area Networks Laboratory

.


.

2.3

.

.

.

show ip ospf interface 1.13

(

)

2.4

ping

Pc

Pc

2.5

ping

Pc

Interface Loopback 0 (10.[x].[x].1)

2.6

Routing

Pc X

Pc

ping

Pc Z

(

)

2.7 ......................................................................

1 January 2013

6/6

Local & Wide Area Networks Laboratory



.

.

.

.

Local and Wide Area Networks Laboratory 8 ACLs 1. 2. 3.

Telnet Access-list

1 Standard ACLs 1.1

1

1 1.2 1.3

17 January 2013

Pc Pc

Telnet

IP Address

1/4

7 LAN Interface

Local & Wide Area Networks Laboratory


.

.

1.4

.

Network -

1.5

1.6

1.7

Pc Z Pc Z Pc X Pc Y 1.4 ACLs

standard ACLs

ping Pc X Pc Y ping loopback 0 ping Pc Y ping Pc X ACLs interface

ACLs

ACLs Pc Z Pc Z Pc X Pc Y

show access-list

ping Pc X Pc Y ping loopback 0 ping Pc Y ping Pc X ......................................................................

17 January 2013

2/4

Local & Wide Area Networks Laboratory

.


.

2 Extened ACLs 2.1 1

.

.

.

ACLs

Router(config-if)# no ip access-group accesslist-number in|out

2.2 2.3

Interface ping Pc telnet

2

Pc

Pc telnet

ip

2.4

intface fastethernet

Network -

4.6

4.7

17 January 2013

extened ACLs

Pc[z] telnet Network 172.16.x.16 172.16.x.32 Pc[z] ping Network 172.16.x.16 172.16.x.32 Network 172.16.x.16 telnet network Pc[x] ping Network 172.16.x.32 192.168.x.128 Network 172.16.x.32 ping Network 172.16.x.16 telnet 172.16.x.16 4.5 ACLs ACLs interface

ACLs

show access-list

3/4

Local & Wide Area Networks Laboratory


.

4.8

4.9

.

ACLs

.

.

show ip access-list

ACLs Pc[z] telnet Network Pc[x] Network Pc[y] Pc[z] ping Network Pc[x] Network Pc[y] Network Pc[x] telnet Network Pc[x] ping Network Pc[y] Network Pc[z] Network Pc[y] ping Network Pc[x] Network Pc[x]

telnet

2.5 ......................................................................

17 January 2013

4/4

Local & Wide Area Networks Laboratory


Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.