CISCO technology set 2

Source: Internet
Author: User

6. Configure static routes
By configuring Static Routing, You can manually specify the path to access a certain network. The network structure is relatively simple, generally, Static Routing is used when the path to a network is unique.
Task commands
Create a static route ip route prefix mask {address | interface} [distance] [tag] [permanent]
Prefix: destination network to be reached
Mask: Subnet mask
Address: the IP address of the next hop, that is, the port address of the adjacent router.
Interface: Local Network interface
Distance: Management distance (optional)
Tag: tag value (optional)
Permanent: specify that the route will not be removed even if the port is switched off.
The next hop address for access 192.1.0.64/26 is set to 192.200.10.6 on Router1, that is, when a destination address belongs to the network range of 192.1.0.64/26, route it to an adjacent router with the address 192.200.10.6. On Router3, the next hop address for access to the 192.1.0.128/26 and 192.200.10.4/30 networks is set to 192.1.0.65. Because the Serial 0 address on Router1 is 192.200.10.5 and 192.200.10.4/30 belong to a directly connected network, there is a path to access 192.200.10.4/30, so you do not need to add a static route on router1.
Router1:
Ip route 192.1.0.64 route 192 192.200.10.6
Router3:
Ip route 192.1.0.128 255.255.255.192 192.1.0.65
Ip route 192.200.10.4 route 255.252 192.1.0.65
At the same time, because Router3 is no longer connected to other routers except router Router2, you can also assign a default route to it to replace the above two static routes,
Ip route 0.0.0.0 0.0.0.0 192.1.0.65
That is, as long as the path to the specific destination address is not found in the routing table, the data is routed to the adjacent router with the address 192.1.0.65.
Returned directory
 
I. HDLC
 
HDLC is the default protocol used by CISCO routers. A new router uses HDLC Encapsulation by default when no encapsulation protocol is specified.
1. Related commands
Port Settings
Task commands
Set HDLC encapsulation hdlc
Set the DCE line speed to clockrate speed
Resets a hardware interface, clear interface serial unit.
Show interface status show interfaces serial [unit] 1
Note: 1. The following example shows the Cisco synchronous serial port status.
Router # show interface serial 0
Serial 0 is up, line protocol is up
Hardware is MCI Serial
Internet address is 150.136.190.203, subnet mask is 255.255.255.0
MTU 1500 bytes, BW 1544 Kbit, DLY 20000 usec, rely 255/255, load 1/255
Encapsulation HDLC, loopback not set, keepalive set (10 sec)
Last input 0:00:07, output 0:00:00, output hang never
Output queue 0/40, 0 drops; input queue 0/75, 0 drops
Five minute input rate 0 bits/sec, 0 packets/sec
Five minute output rate 0 bits/sec, 0 packets/sec
16263 packets input, 1347238 bytes, 0 no buffer
Received 13983 broadcasts, 0 runts, 0 giants
2 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 2 abort
22146 packets output, 2383680 bytes, 0 underruns
0 output errors, 0 collisions, 2 interface resets, 0 restarts
1 carrier transitions
2. Example
The settings are as follows:
Router1:
Interface Serial0
Ip address 192.200.10.1 255.255.255.0
Clockrate 1000000
Router2:
Interface Serial0
Ip address 192.200.10.2 255.255.255.0
!
3. Use the E1 line as an example to connect multiple 64 k leased lines.
Related commands:
Task commands
Enter controller Configuration Mode controller {t1 | e1} number
Select Frame Type framing {crc4 | no-crc4}
Select line-code type linecode {ami | b8zs | hdb3}
Establishes a logical channel group and time slot ing channel-group number timeslots range1
Show controllers e1 [slot/port] 2
Note: 1. when the link is T1, the channel-group number is 0-23, and the Timeslot range is 1-24. When the link is E1, the channel-group number is 0-30, timeslot range: 1-31.
2. Use show controllers e1 to observe the controller status. The following figure shows the normal status of controllers when the frame type is crc4.
Router # show controllers e1
E1 0/0 is up.
Applique type is Channelized E1-unbalanced
Framing is CRC4, Line Code is HDB3 No alarms detected.
Data in current interval (725 seconds elapsed ):
0 Line Code Violations, 0 Path Code Violations
0 Slip Secs, 0 Fr Loss Secs, 0 Line Err Secs, 0 Degraded Mins
0 Errored Secs, 0 Bursty Err Secs, 0 Severely Err Secs, 0 Unavail Secs
Total Data (last 24 hours) 0 Line Code Violations, 0 Path Code Violations,
0 Slip Secs, 0 Fr Loss Secs, 0 Line Err Secs, 0 Degraded Mins,
0 Errored Secs, 0 Bursty Err Secs, 0 Severely Err Secs, 0 Unavail Secs
The following example shows how to connect three 64 k leased lines with a frame type of NO-CRC4 and a non-balanced link. The router configuration is as follows:
Shanxi # wri t
Building configuration...
Current configuration:
!
Version 11.2:
No service udp-small-servers
No service tcp-small-servers
!
Hostname shanxi
!
Enable secret 5 $1 $ XN08 $ Ttr8nfLoP9.2RgZhcBzkk/
Enable password shanxi
!
!
Ip subnet-zero
!
Controller E1 0
Framing NO-CRC4
Channel-group 0 timeslots 1
Channel-group 1 timeslots 2
Channel-group 2 timeslots 3
!
Interface Ethernet0
Ip address 133.118.40.1 255.255.0.0
Media-type 10 BaseT
!
Interface Ethernet1
No ip address
Shutdown
!
Interface Serial0: 0
Ip address 202.119.96.1 255.255.255.252
No ip mroute-cache
!
Interface Serial0: 1
Ip address 202.119.96.5 255.255.255.252
No ip mroute-cache
!
Interface Serial0: 2
Ip address 202.119.96.9 255.255.255.252
No ip mroute-cache
!
No ip classless
Ip route 133.210.40.0 255.255.255.0 Serial0: 0
Ip route 133.210.41.0 255.255.255.0 Serial0: 1
Ip route 133.210.42.0 route 255.255.0 Serial0: 2
!
Line con 0
Line aux 0
Line vty 0 4
Password shanxi
Login
!
End
Wan settings:
 
I. HDLC
 
HDLC is the default protocol used by CISCO routers. A new router uses HDLC Encapsulation by default when no encapsulation protocol is specified.
1. Related commands
Port Settings
Task commands
Set HDLC encapsulation hdlc
Set the DCE line speed to clockrate speed
Resets a hardware interface, clear interface serial unit.
Show interface status show interfaces serial [unit] 1
Note: 1. The following example shows the Cisco synchronous serial port status.
Router # show interface serial 0
Serial 0 is up, line protocol is up
Hardware is MCI Serial
Internet address is 150.136.190.203, subnet mask is 255.255.255.0
MTU 1500 bytes, BW 1544 Kbit, DLY 20000 usec, rely 255/255, load 1/255
Encapsulation HDLC, loopback not set, keepalive set (10 sec)
Last input 0:00:07, output 0:00:00, output hang never
Output queue 0/40, 0 drops; input queue 0/75, 0 drops
Five minute input rate 0 bits/sec, 0 packets/sec
Five minute output rate 0 bits/sec, 0 packets/sec
16263 packets input, 1347238 bytes, 0 no buffer
Received 13983 broadcasts, 0 runts, 0 giants
2 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 2 abort
22146 packets output, 2383680 bytes, 0 underruns
0 output errors, 0 collisions, 2 interface resets, 0 restarts
1 carrier transitions
2. Example
The settings are as follows:
Router1:
Interface Serial0
Ip address 192.200.10.1 255.255.255.0
Clockrate 1000000
Router2:
Interface Serial0
Ip address 192.200.10.2 255.255.255.0
!
3. Use the E1 line as an example to connect multiple 64 k leased lines.
Related commands:
Task commands
Enter controller Configuration Mode controller {t1 | e1} number
Select Frame Type framing {crc4 | no-crc4}
Select line-code type linecode {ami | b8zs | hdb3}
Establishes a logical channel group and time slot ing channel-group number timeslots range1
Show controllers e1 [slot/port] 2
Note: 1. when the link is T1, the channel-group number is 0-23, and the Timeslot range is 1-24. When the link is E1, the channel-group number is 0-30, timeslot range: 1-31.
2. Use show controllers e1 to observe the controller status. The following figure shows the normal status of controllers when the frame type is crc4.
Router # show controllers e1
E1 0/0 is up.
Applique type is Channelized E1-unbalanced
Framing is CRC4, Line Code is HDB3 No alarms detected.
Data in current interval (725 seconds elapsed ):
0 Line Code Violations, 0 Path Code Violations
0 Slip Secs, 0 Fr Loss Secs, 0 Line Err Secs, 0 Degraded Mins
0 Errored Secs, 0 Bursty Err Secs, 0 Severely Err Secs, 0 Unavail Secs
Total Data (last 24 hours) 0 Line Code Violations, 0 Path Code Violations,
0 Slip Secs, 0 Fr Loss Secs, 0 Line Err Secs, 0 Degraded Mins,
0 Errored Secs, 0 Bursty Err Secs, 0 Severely Err Secs, 0 Unavail Secs
The following example shows how to connect three 64 k leased lines with a frame type of NO-CRC4 and a non-balanced link. The router configuration is as follows:
Shanxi # wri t
Building configuration...
Current configuration:
!
Version 11.2:
No service udp-small-servers
No service tcp-small-servers
!
Hostname shanxi
!
Enable secret 5 $1 $ XN08 $ Ttr8nfLoP9.2RgZhcBzkk/
Enable password shanxi
!
!
Ip subnet-zero
!
Controller E1 0
Framing NO-CRC4
Channel-group 0 timeslots 1
Channel-group 1 timeslots 2
Channel-group 2 timeslots 3
!
Interface Ethernet0
Ip address 133.118.40.1 255.255.0.0
Media-type 10 BaseT
!
Interface Ethernet1
No ip address
Shutdown
!
Interface Serial0: 0
Ip address 202.119.96.1 255.255.255.252
No ip mroute-cache
!
Interface Serial0: 1
Ip address 202.119.96.5 255.255.255.252
No ip mroute-cache
!
Interface Serial0: 2
Ip address 202.119.96.9 255.255.255.252
No ip mroute-cache
!
No ip classless
Ip route 133.210.40.0 255.255.255.0 Serial0: 0
Ip route 133.210.41.0 255.255.255.0 Serial0: 1
Ip route 133.210.42.0 route 255.255.0 Serial0: 2
!
Line con 0
Line aux 0
Line vty 0 4
Password shanxi
Login
!
End
Article entry: csh responsible editor: csh

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.