CiscoRouter
Configuration:
R1>enable
R1#conf t
R1 (config)# hostname CiscoRouter
CiscoRouter (config)# interface FastEthernet0/0
CiscoRouter (config-if)# ip address 104.10.1.2
255.255.255.252
CiscoRouter (config-if)#no shutdown
CiscoRouter (config-if)#exit
CiscoRouter (config)# interface FastEthernet0/1
CiscoRouter (config-if)# ip address 172.16.2.1 255.255.255.0
CiscoRouter (config-if)# no shutdown
CiscoRouter (config-if)# exit
CiscoRouter (config)# interface tunnel 0
CiscoRouter (config-if)# ip ip address 192.168.1.2
255.255.255.252
CiscoRouter (config-if)# no shutdown
CiscoRouter (config-if)# tunnel source 104.10.1.2
CiscoRouter
(config-if )# tunnel destination 27.10.10.2
CiscoRouter (config-if )#exit
CiscoRouter (config)# ip route 0.0.0.0 0.0.0.0 104.10.1.1
CiscoRouter (config)# ip route 172.16.1.0 255.255.255.0
192.168.1.1
Cisco Router Verification :
CiscoRouter#sh ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B -
BGP
D - EIGRP, EX -
EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA
external type 2
E1 - OSPF
external type 1, E2 - OSPF external type 2
i - IS-IS, su -
IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS
inter area, * - candidate default, U - per-user static route
o - ODR, P -
periodic downloaded static route
Gateway of last resort is 104.10.1.1 to network 0.0.0.0
172.16.0.0/24 is
subnetted, 2 subnets
S 172.16.1.0
[1/0] via 192.168.1.1
C 172.16.2.0 is
directly connected, FastEthernet0/1
192.168.1.0/30 is
subnetted, 1 subnets
C 192.168.1.0 is
directly connected, Tunnel0
104.0.0.0/30 is
subnetted, 1 subnets
C 104.10.1.0 is
directly connected, FastEthernet0/0
S* 0.0.0.0/0 [1/0]
via 104.10.1.1
CiscoRouter#sh int tunnel 0
Tunnel0 is up, line protocol is up
Hardware is Tunnel
Internet address is
192.168.1.2/30
MTU 1514 bytes, BW 9
Kbit, DLY 500000 usec,
reliability
255/255, txload 1/255, rxload 1/255
Encapsulation
TUNNEL, loopback not set
Keepalive not set
Tunnel source
104.10.1.2, destination 27.10.10.2
Tunnel
protocol/transport GRE/IP
Key disabled,
sequencing disabled
Checksumming of
packets disabled
Tunnel TTL 255
Fast tunneling
enabled
Tunnel transmit
bandwidth 8000 (kbps)
Tunnel receive
bandwidth 8000 (kbps)
Last input 00:12:16,
output 00:12:16, output hang never
Last clearing of
"show interface" counters never
Input queue:
0/75/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue: 0/0
(size/max)
5 minute input rate
0 bits/sec, 0 packets/sec
5 minute output rate
0 bits/sec, 0 packets/sec
95 packets input,
8040 bytes, 0 no buffer
Received 0
broadcasts, 0 runts, 0 giants, 0 throttles
0 input errors, 0
CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
105 packets
output, 9112 bytes, 0 underruns
0 output errors,
0 collisions, 0 interface resets
0 output buffer
failures, 0 output buffers swapped out
Mikrotik Route Configuration:
[admin@MikroTik] > ip address add address=27.10.10.2/30 interface=ether1
[admin@MikroTik] > ip address add address=172.16.1.1/24 interface=ether2
[admin@MikroTik] > interface gre add name=tunnel0
local-address=27.10.10.2 remote-address=104.10g .1.2
[admin@MikroTik] > ip address add address=192.16.1.1/30
interface=tunnel0
[admin@MikroTik] > ip route add dst-address=0.0.0.0
gateway=27.10.10.1
[admin@MikroTik] > ip route add dst-address=172.16.2.0/24
gateway=192.168.1.2
No comments:
Post a Comment