Upload
andy-williams
View
212
Download
0
Embed Size (px)
Citation preview
8/3/2019 Poin to Point
1/6
Getting started.
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 startup-
config 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.
Advantech Modem/Router Setup
10/100LAN
Console
TX
RX
10/100LAN
Console
TX
RX
RJ45Crossover
Video
USB
RS 232 / RJ45AdapterLaptop computer
RJ45Crossover
Video
USB
RS 232 / RJ45Adapter Laptop computer
Modem ModemRouter Router
AMT 73L AMT 73L
Serial 0 Ethernet 0Serial 0Ethernet 0
10.0.0.1/8 10.0.0.2/8192.168.200.16/16 192.170.0.1/16
8/3/2019 Poin to Point
2/6
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 routerWAN 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.
Configuring the router 0 subnet 192.168.0.0/16.
router>router>enrouter>enable
router#configure terminalrouter(config)#interface Ethernet 0router(config-if)#ip address 192.168.200.16/16router(config-if)#no shutdown% Interface Ethernet0, changed state to administratively uprouter(config-if)#
router(config-if)#router(config-if)#% Link layer on interface Ethernet0, changed state toup% Line protocol on interface Ethernet0, changed state to up
router(config-if)#exitrouter(config)#interface Serial 1/0% Link layer on interface Serial 1/0, changed state to uprouter(config-if)#ip address 10.0.0.1router(config-if)#no keepaliverouter(config-if)#ignore dcdrouter(config-if)#no shutdown% Interface Serial1/0, changed state to administratively uprouter(config-if)#exitrouter(config)#% Line protocol on interface Serial1/0, changed state toup
router(config)#ip route 192.170.0.0/16 10.0.0.2router(config)#exitrouter#shrouter#show rurouter#show running-configBuilding configuration...Current configuration : 516 bytes-----------------------------! integrity,hash(md5,GJLjdbUHYAZB9pGe5ptFtw==);
8/3/2019 Poin to Point
3/6
! Generated by router on 7.9.2136 1:53:18no dns use-cachedns order hosts-then-bindip domain-lookupip domain-name localhostname routerip host localhost 127.0.0.1
no service timestamps debugno service timestamps log
ip route 192.170.0.0/16 10.0.0.2
ip http server
interface Ethernet0ip address 192.168.200.16 255.255.0.0mac-address 00:0E:02:00:01:DCspeed autoduplex autono shutdown
interface Serial1/0ip address 10.0.0.1 255.0.0.0no keepaliveignore dcdno shutdown
-----------------------------router#configure terminalrouter(config)#horouter(config)#hostname router0router0(config)#exitrouter0#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/0C>* 127.0.0.1/32 is directly connected, Loopback0C>* 192.168.0.0/16 is directly connected, Ethernet0S>* 192.170.0.0/16 [1/0] via 10.0.0.2, Serial1/0router0#
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 PINGcommand 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 interfaceSerial 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.
8/3/2019 Poin to Point
4/6
Configuring the router 1 subnet 192.170.0.0/16.
router>router>router>enablerouter#configure terminalrouter(config)#interface Ethernet 0router(config-if)#ip address 192.170.0.1/16router(config-if)#no shutdown% Interface Ethernet0, changed state to administratively uprouter(config-if)#exitrouter(config)#% Link layer on interface Ethernet0, changed state to up% Line protocol on interface Ethernet0, changed state to up
router(config)#interface Serial 1/0% Link layer on interface Serial1/0, changed state to uprouter(config-if)#ip address 10.0.0.2router(config-if)#no keepaliverouter(config-if)#ignore dcdrouter(config-if)#no shutdown% Interface Serial1/0, changed state to administratively uprouter(config-if)#exitrouter(config)#% Line protocol on interface Serial1/0, changed state toup
router(config)#exitrouter#ping 10.0.0.1Sending 5 packets of size 60 to 10.0.0.1 address.!!!!!
Packets sent: 5, received: 5, loss 0%, round-trip delay (min/max/avg)27/27/27router#router#configure terminalrouter(config)#ip route 192.168.0.0/16 10.0.0.1router(config)#exitrouter#show running-configBuilding configuration...Current configuration : 514 bytes-----------------------------! integrity,hash(md5,3B0i+/c1lbexOkDqHV+/1A==);! Generated by router on 18.11.2136 8:5:18no dns use-cachedns order hosts-then-bindip domain-lookupip domain-name localhostname routerip host localhost 127.0.0.1
no service timestamps debugno service timestamps log
ip route 192.168.0.0/16 10.0.0.1
ip http server
8/3/2019 Poin to Point
5/6
interface Ethernet0
ip address 192.170.0.1 255.255.0.0mac-address 00:0E:02:00:01:D1speed autoduplex autono shutdown
interface Serial1/0ip address 10.0.0.2 255.0.0.0no keepaliveignore dcdno shutdown
-----------------------------router#configure terminalrouter(config)#hostname router1router1(config)#exitrouter1#router1#show interface Serial 1/0Interface Serial0,
Index 4, MTU = 1500, Metric 0, BW 128 Kbit
CDP disabled on this interfaceStatus (admin/proto/port) = (up/up/up)UP BROADCAST RUNNING NOARP MULTICAST
IP address 10.0.0.2/8 broadcast 10.255.255.255Input 8 packets, 512 bytes, 0 errorsOutput 8 packets, 512 bytes, 0 errorsMulticasts sent 0, received 0Input 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 secState is reliable, last keepalive 0:0:4
Port type is QUICC Serial, mode Generic HDLCReceive errors: 0 CRC, 0 overrun, 0 carrier lost0 frame violation, 0 non octet, 0 abort sequence
0 dpll errorSend errors: 0 underruns, 0 CTS lostPackets: 50 transmitted, 52 receivedInterrupts: 0 output, 52 input, 0 carrier detectDCD = up, DSR = up, DTR = up, RTS = up, CTS = up.
router1#show interface Serial 1/0 accountingSerial1/0Protocol Pkts In Chars In Pkts Out Chars Out
IP 8 480 8 480TCP 0 0 0 0UDP 0 0 0 0ICMP 8 320 8 320 ARP 0 0 0 0
Bridge 0 0 0 0router1#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/0C>* 127.0.0.1/32 is directly connected, Loopback0S>* 192.168.0.0/16 [1/0] via 10.0.0.1, Serial1/0C>* 192.170.0.0/16 is directly connected, Ethernet0router1#
8/3/2019 Poin to Point
6/6
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.