Idea: configure the IP address of the interface connecting different routers to the same network segment, while the interfaces inside the router implement communication through direct connection routing. The static route added by the vro is the interface IP address and subnet mask of the vro to be connected, and the interface IP address of the directly connected vro! That is, the next hop address.
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/4C/41/wKiom1Q5_PbxqMfDAADLXucfsUM537.jpg "Title =" Capture 1.jpg" alt = "wkiom1q5_pbxqmfdaadlxucfsum537.jpg"/>
Router-1
Router> en
Router # conf t
R1 (config) # int F0/1
R1 (config-If)
# R1 (config-If) # IP add 1.1.1.2 255.0.0.0
R1 (config-If) # No shut
R1 (config-If) # int F0/0
R1 (config-If) # IP add 2.2.2.1 255.0.0.0
R1 (config-If) # No shut
##############################
Router-2
Router> en
Router # conf t
Router (config) # host r2
R2 (config) # int F0/0
R2 (config-If) # IP add 2.2.2.2 255.0.0.0
R2 (config-If) # int F0/1
R2 (config-If) # IP add 3.3.3.1 255.0.0.0
R2 (config-If) # No shut
##############################
Router-3
Router> en
Router # conf t
Router (config) # host r3
Router (config) # int F0/1
Router (config-If) # IP add 3.3.3.2 route 0.0.0
Router (config-If) # No shut
R3 (config-If) # int F0/0
R3 (config-If) # IP add 4.4.4.1 255.0.0.0
R3 (config-If) # No shut
Add a static route in r1
R1 (config) # IP Route 3.0.0.0 255.0.0.0 2.2.2.2
R1 (config) # IP Route 4.0.0.0 255.0.0.0 2.2.2.2
Add a static route in R2
R2 (config) # IP Route 1.0.0.0 255.0.0.0 2.2.2.1
R2 (config) # IP Route 4.0.0.0 255.0.0.0 3.3.3.2
A default route entry below r3
R3 (config) # IP Route 0.0.0.0 0.0.0.0 3.3.3.1
View route information do show IP Route
$
Idea: VTP is used to manage VLANs between switches. There are three modes: Server, client, and transparent, the client cannot delete or modify VLAN information and can automatically synchronize VLAN information. The transparent end is not affected. You can add or delete VLANs by yourself, and only play the role of one relay for transmission. The communication between the vswitch and the vswitch is transmitted through the trunk.
1. Set the Host Name
(CONF) # hostname SW1
2. Configure the Enable Password
(CONF) # enable password 123 --- plaintext Password
(CONF) # enable secret 456 -- encrypted password
3. Configure the password for the control line
(CONF) # Line console 0
(Config-line) # password 123
(Config-line) # Login
4. configure remote management (vty)
(1) configure a management IP address (vlan1 Interface) for the device)
SW1 (config) # interface VLAN 1
SW1 (config-If) # IP address 192.168.1.1 255.255.255.0
SW1 (config-If) # No Shutdown
SW1 (config-If) # exit
SW1 (config) # Line vty 0 4
SW1 (config-line) # password 123456
SW1 (config-line) # Login
Query configuration files
# Show running-config
Save configuration file
SW1 # copy running-config startup-config is equal to SW1 # Write
Destination filename [startup-config]?
Building configuration...
[OK]
Verify
SW1 (config) # End
SW1 # exit
User Access Verification
Password: 123 (console password)
SW1> enable (privileged password)
Password:
Open a command prompt and configure an IP address (192.168.1.2) for the PC)
PC> Telnet 192.168.1.1
Trying 192.168.1.1... open
User Access Verification
Password: (Remote vty password)
SW1>
VLAN Division
1. Create a VLAN
Switch (config) # hostname SW1
SW1 (config) # VLAN 10 -- create vlan10 globally
SW1 (config-VLAN) # name upl_vlan10 -- name vlan10
SW1 # VLAN database -- enter the VLAN Database
SW1 (VLAN) # VLAN 20 -- create vlan20
VLAN 20 added:
Name: vlan0020
SW1 (VLAN) # exit
Apply completed.
Exiting ....
SW1 # conf t
Enter configuration commands, one per line. End with cntl/Z.
SW1 (config) # VLAN 20
SW1 (config-VLAN) # name upl_vlan20 -- enter global Rename to vlan20
SW1 (config) # do show VLAN -- Query VLAN
2. Divide ports into VLANs for isolated Broadcast
SW1 (config) # interface F0/1
SW1 (config-If) # switchport access VLAN 10
SW1 (config) # interface F0/2
SW1 (config-If) # switchport access VLAN 10
SW1 (config) # interface range F0/3-4
SW1 (config-if-range) # switchport access VLAN 20
++
Configure VLAN Truck
Switch>
Switch> en
Switch # conf t
Enter configuration commands, one per line. End with cntl/Z.
Switch (config) # hostname SW1
SW1 (config) # VLAN 100
SW1 (config-VLANs) # VLAN 200
SW1 (config-VLANs) # VLAN 300
SW1 (config-VLAN) # do show VLAN
SW1 (config) # VLAN 100
SW1 (config-VLANs) # VLAN 200
SW1 (config-VLANs) # VLAN 300
SW1 (config-VLAN) # do show VLAN
SW1 (config) # interface Ra F0/1-10
SW1 (config-if-range) # switchport Mode Access
SW1 (config-if-range) # Switch Port Access VLAN 100
SW1 (config) # interface range F0/11-20
SW1 (config-if-range) # switchport Mode Access
SW1 (config-if-range) # Switch Port Access VLAN 200
SW1 (config) # interface range F0/21-23
SW1 (config-if-range) # switchport Mode Access
SW1 (config-if-range) # Switch Port Access VLAN 300
Configure Relay
Encapsulation Protocol for relay
SW1 (config-If) # switchport trunk encapsulation dot1q
SW1 (config-If) # switchport trunk encapsulation dot1q
SW1 (config-If) # switchport mode trunk
++
VTP
Switch>
Switch> en
Switch # conf t
Enter configuration commands, one per line. End with cntl/Z.
Switch (config) # hostname SW1
SW1 (config) # VTP Mode Server
SW1 (config) # VTP Mode Server
SW1 (config) # VTP password 123
Sw2 (config) # VTP mode transparent
Sw2 (config) # VTP domain upl
Sw2 (config) # VTP password 123
Switch (config) # hostname sw3
Sw3 (config) # VTP mode Client
Sw3 (config) # VTP domain upl
Sw3 (config) # VTP password 123
All relay links need to be converted into Truck
SW1 (config-VLAN) # int F0/1
SW1 (config-If) # switchport mode trunk
Sw2 (config) # int Ra F0/1-2
Sw2 (config-if-range) # switchport mode trunk
Sw3 (config) # int F0/2
Sw3 (config-If) # switchport mode trunk
Static Routing and VTP implementation