Second, the operation of the problem (a total of 80)
Please configure the following topology experiment, save the topology, set up a text document, follow the switch-Router 1 2 3 4 in order to copy and paste the show running-config of each device, save the text document and the topology, submit the compressed package naming format is: X group-Name.
Using the Cisco Packet Tracer Software, (1) R1 connect the company intranet, through the R1 access to the external network, and the external network has a server R5, now through the configuration can make the company's PC Access server R5.
Requirements:
- Configure the IP address according to the topology map.
PC0:192.168.10.2/24 Gateway: 192.168.10.254/24
PC1:192.168.20.2/24 Gateway: 192.168.20.254/24
The router interface address is shown in the topology diagram, such as r1-f0/0:172.16.12.1/24
The router configures the loopback address loopback 1, 10.x.x.x/24 for example: r1:10.1.1.1/24
PC0:
PC1:
With IP address
Router>enable//Enter enable mode
router#conf//Enter global mode (highest privilege)
Router (config) #int lo1//Enter LO1 interface
Router (config-if) #ip add 10.1.1.1 255.255.255.0//Set IP address
Router (config-if) #no shutdown//Open port
Router (config-if) #int f0/0
Router (config-if) #ip add 172.16.12.1 255.255.255.0
Router (config-if) #no shutdown
Router (CONFIG-IF) #end//Large return
router#show IP int br//View IP
Router#show IP route//View routing table
Router#show Run | s xieyi//View protocol (not available in Cisco)
Router#clear IP route *//Cleanup routing table
ROUTER#WR//Save
Building configuration ...
[OK]
Router (config) #hostname R2//change name
R1#erase Startup-config//Clear All
R1#reload//restart
Continue with Configuration dialog? [Yes/no]: No
- PC 0 divides the VLAN 10,pc1 into VLAN20, choosing the right method to make PC0 and PC1 interoperable
Partitioning the PC into VLANs (operation on the switch)
Switch (config) #vlan 10//Create VLAN 10
Switch (Config-vlan) #ex//exit VLAN 10 mode
Switch (config) #vlan 20//Create VLAN 20
Switch (Config-vlan) #ex
Switch (config) #int f0/1//Enter F0/1 port
Switch (config-if) #switchport MO Access//enable Access Protocol
Switch (config-if) #switchport access VLAN 10//Divide the PC under the F0/1 port into VLAN 10
Switch (config-if) #int F0/3//Enter F0/3 port
Switch (config-if) #switchport MO Access/enable Access Protocol
Switch (config-if) #switchport AC VLAN 20//Divide the PC under the F0/3 port into VLAN 20
Switch#show Run//View all Configurations
Change switch to trunk mode (operation on switch)
Switch (config) #int F0/2//Enter out interface
Switch (config-if) #switchport mode trunk//Turn out interface to trunk mode
Switch (CONFIG-IF) #no shutdown//Open port
Single-arm routing (operation from the nearest router on the switch)
Router (config-subif) #int F 1/0
Router (CONFIG-SUBIF) #no shutdown (default is off on route)
Router (config) #int fastethernet 1/0.1 (enter sub-interface)
Router (config-subif) #encapsulation dot1q 10 (Encapsulated dot1q protocol, same as the VLAN that the PC belongs to)
Router (config-subif) #ip add 192.168.10.254 255.255.255.0
Router (config-subif) #int F 1/0.2
Router (config-subif) #encapsulation dot1q 20 (Encapsulated dot1q protocol, same as VLAN with IP address configured below)
Router (config-subif) #ip add 192.168.20.254 255.255.255.0
Gray Section , the address is the same as the default gateway of PC, please do not match the wrong
Ping between PC0 and PC1
3, R1 all interface (including loopback 1), R2 f0/0 do rip, version number 2
R1 (config) #router rip//Enter RIP protocol
R1 (Config-router) #version 2//Select version number (typically 1 version)
R1 (config-router) #no auto-summary//Turn off Auto Summary
R1 (config-router) #network 10.1.1.0//Declaration Lo1
R1 (config-router) #network 192.168.10.0//Declaration f1/0.1
R1 (config-router) #network 192.168.20.0//Declaration f1/0.2
R1 (config-router) #network 172.16.12.0//Declaration f0/0
R2 (config) #router rip
R2 (config-router) #version 2
R2 (config-router) #no au
R2 (config-router) #network 172.16.12.0
4. To do OSPF, the f1/0 and Loopback1 interfaces of R2 and R3 belong to the 0,R3, R4 of OSPF area f0/0 and R4
F1/0 and Loopback1 belong to OSPF area 1 and are divided into corresponding regions according to the topology, and the route ID corresponds to loopback 1
R2 (config) #router OSPF 100//Enter the OSPF protocol (110 or less, as long as it is the same number on the line)
R2 (config-router) #router-id 10.2.2.2//Assign IP to the route, similar to the identity card
R2 (config-router) #network 10.2.2.0 0.0.0.255 Area 0//Declare LO1, partition
R2 (config-router) #network 172.16.23.0 0.0.0.255 Area 0//Declare f1/0, partition
R2#show Run//View all Configurations
R3
R4
5. Pick the right device, do RIP and OSPF redistribution, and learn the routing entries to each other
Choose to redistribute on R2 because it has two protocols at the same time
R2 (config) #router OSPF 100//Enter the OSPF protocol
R2 (config-router) #redistribute RIP subnets//Assign RIP
R2 (Config-router) #ex//return to upper level
R2 (config) #router rip
R2 (config-router) #redistribute OSPF metric 1//Assign OSPF protocol
6. Use NAT Pat mode address translation on egress router R4, based on interface
R4 (config) #ip nat inside source List 1 interface f1/0 overload//extranet interface
R4 (config) #access-list 1 Permit 192.168.10.0 0.0.0.255//pc0
R4 (config) #access-list 1 Permit 192.168.20.0 0.0.0.255//PC1
R4 (config) #int f0/0//Enter into interface
R4 (config-if) #ip NAT inside//Announce Intranet
R4 (config-if) #int f1/0//Enter out interface
R4 (config-if) #ip NAT outside//announce extranet
7. The final implementation of PC0 and PC1 can be accessed R5
Need:
Show ip route on R1
Show ip NAT translations on R4
(1)
Network-cisco Exam