Escolar Documentos
Profissional Documentos
Cultura Documentos
Document describes how to configure simple point-to-point connection based on HDLC WAN protocol (default option) using two modems with routers inside. Configuration includes the following steps (modem configuration is omitted): 1. Clearing existing configuration (if necessary) use commands clear startupconfig and restart router command reload; 2. Configuring Ethernet interfaces on the both routers commands interface Ethernet 0, ip address, no shutdown; 3. Configuring Serial interfaces on the routers commands interface Serial 1/0, ip address, no shutdown; 4. Configuring static routes command ip route; 5. Save configuration command copy running-config startup-config; 6. Debugging operation interface statistics display, routing table contents display and etc., use commands show interface, show ip routes, and etc. Test setup scheme is shown on the picture below.
192.168.200.16/16
RJ45 Crossover 10/100LAN USB Console Laptop computer RS 232 / RJ45 Adapter
10.0.0.1/8
TX TX
10.0.0.2/8
192.170.0.1/16
RJ45 Crossover 10/100LAN USB
AMT 73L
RX RX
AMT 73L
Router
Video
Modem
Modem
Router
Video
Ethernet 0
Serial 0
Serial 0
Ethernet 0
After running these set up scripts you would be able to implement a WAN connection and successfully demonstrate LAN to LAN connectivity through the use of the PING command. Each LAN will be connected to the WAN by the built in routers. Physically, the router WAN serial links are interfaced using a DCE/DTE cable pair inside the modems. The Ethernet interfaces accept 10/100 Base-T connections. The routers use a single Ethernet 0 and single Serial 0 interface. A basic and required task for configuring IP is to assign IP addresses to network interfaces. Doing so enables the interfaces and allows communication with hosts on those interfaces using IP.
! Generated by router on 7.9.2136 1:53:18 no dns use-cache dns order hosts-then-bind ip domain-lookup ip domain-name local hostname router ip host localhost 127.0.0.1 no service timestamps debug no service timestamps log ip route 192.170.0.0/16 10.0.0.2 ip http server interface Ethernet0 ip address 192.168.200.16 255.255.0.0 mac-address 00:0E:02:00:01:DC speed auto duplex auto no shutdown interface Serial1/0 ip address 10.0.0.1 255.0.0.0 no keepalive ignore dcd no shutdown ----------------------------router#configure terminal router(config)#ho router(config)#hostname router0 router0(config)#exit router0# router0#show ip routes Codes: K - kernel route, C - connected, S - static, R - RIP, > - selected route, * - FIB route C>* 10.0.0.0/8 is directly connected, Serial1/0 C>* 127.0.0.1/32 is directly connected, Loopback0 C>* 192.168.0.0/16 is directly connected, Ethernet0 S>* 192.170.0.0/16 [1/0] via 10.0.0.2, Serial1/0 router0#
After you have the Ethernet interface and at least one serial interface configured properly (you will know this because the interface will show both states as UP), you can use PING command from a PC. By default all interfaces after programming are in shutdown mode to enable then use no shutdown command. When the serial interfaces have been configured use show interface Serial 1/0 command to see number of packets sent and received, number of errors and the interface states. If everything is working proceed to the next stage configuration of ip routes.
interface Ethernet0 ip address 192.170.0.1 255.255.0.0 mac-address 00:0E:02:00:01:D1 speed auto duplex auto no shutdown interface Serial1/0 ip address 10.0.0.2 255.0.0.0 no keepalive ignore dcd no shutdown ----------------------------router#configure terminal router(config)#hostname router1 router1(config)#exit router1# router1#show interface Serial 1/0 Interface Serial0, Index 4, MTU = 1500, Metric 0, BW 128 Kbit CDP disabled on this interface Status (admin/proto/port) = (up/up/up) UP BROADCAST RUNNING NOARP MULTICAST IP address 10.0.0.2/8 broadcast 10.255.255.255 Input 8 packets, 512 bytes, 0 errors Output 8 packets, 512 bytes, 0 errors Multicasts sent 0, received 0 Input queue is fifo: 0 drops, 0 "no proto" Output queue is fifo: 0/250/0 (size/max/drops) Encapsulation protocol is HDLC Keepalive time is 10 sec State is reliable, last keepalive 0:0:4 Port type is QUICC Serial, mode Generic HDLC Receive errors: 0 CRC, 0 overrun, 0 carrier lost 0 frame violation, 0 non octet, 0 abort sequence 0 dpll error Send errors: 0 underruns, 0 CTS lost Packets: 50 transmitted, 52 received Interrupts: 0 output, 52 input, 0 carrier detect DCD = up, DSR = up, DTR = up, RTS = up, CTS = up. router1#show interface Serial 1/0 accounting Serial1/0 Protocol Pkts In Chars In Pkts Out Chars Out IP 8 480 8 480 TCP 0 0 0 0 UDP 0 0 0 0 ICMP 8 320 8 320 ARP 0 0 0 0 Bridge 0 0 0 0 router1#show ip routes Codes: K - kernel route, C - connected, S - static, R - RIP, > - selected route, * - FIB route C>* 10.0.0.0/8 is directly connected, Serial1/0 C>* 127.0.0.1/32 is directly connected, Loopback0 S>* 192.168.0.0/16 [1/0] via 10.0.0.1, Serial1/0 C>* 192.170.0.0/16 is directly connected, Ethernet0 router1#
Do not forget to save the configuration command copy running-config startup-config. Additional routes configuring is necessary to be performed on both laptops for sending IP packets between them. For example, routers in their LANs may be defined as default gateways.
IMPORTANT NOTES. Use serial interface debugging commands for checking port functionality errors and packet activity. If no traffic is being sent or received, look at the error counters and number of sent and received packets and interrupts. During invalid modem configuration packets may be not received or transmitted, or received with errors. For unidirectional connection (modulator or demodulator used only) keepalive procedure must be disabled. Use command no keepalive. This example provides the simplest configuration that allows achieving result very quickly. The Advantech AMT routers are highly configurable and provide wide range of possible configuration schemes that may be used for building more complex network solutions.