Docsity

Configuración de traducción de direcciones IP en un router Cisco, Ejercicios de Ingeniería Infórmatica

Toggle sidebar
bg1
CONFIGURACION DEL ROUTER
[root@luthien root]# ifconfig eth0 10.10.10.15 up
[root@luthien root]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:01:02:A4:DB:07
inet addr:10.10.10.15 Bcast:10.255.255.255 Mask:255.0.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:9 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 b) TX bytes:540 (540.0 b)
Interrupt:11 Base address:0xe400
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:5055 errors:0 dropped:0 overruns:0 frame:0
TX packets:5055 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:344752 (336.6 Kb) TX bytes:344752 (336.6 Kb)
[root@luthien root]# route add default gw 10.10.10.1
[root@luthien root]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.0.0.0 * 255.0.0.0 U 0 0 0 eth0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default 10.10.10.1 0.0.0.0 UG 0 0 0 eth0
[root@luthien root]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:01:02:A4:DB:07
inet addr:10.10.10.15 Bcast:10.255.255.255 Mask:255.0.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:15 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 b) TX bytes:900 (900.0 b)
pf3
pf4
pf5
pf8

Vista previa parcial del texto

¡Descarga Configuración de traducción de direcciones IP en un router Cisco y más Ejercicios en PDF de Ingeniería Infórmatica solo en Docsity!

CONFIGURACION DEL ROUTER

[root@luthien root]# ifconfig eth0 10.10.10.15 up

[root@luthien root]# ifconfig

eth0 Link encap:Ethernet HWaddr 00:01:02:A4:DB:

inet addr:10.10.10.15 Bcast:10.255.255.255 Mask:255.0.0.

UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:

RX packets:0 errors:0 dropped:0 overruns:0 frame:

TX packets:9 errors:0 dropped:0 overruns:0 carrier:

collisions:0 txqueuelen:

RX bytes:0 (0.0 b) TX bytes:540 (540.0 b)

Interrupt:11 Base address:0xe

lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0. UP LOOPBACK RUNNING MTU:16436 Metric: RX packets:5055 errors:0 dropped:0 overruns:0 frame: TX packets:5055 errors:0 dropped:0 overruns:0 carrier: collisions:0 txqueuelen: RX bytes:344752 (336.6 Kb) TX bytes:344752 (336.6 Kb)

[root@luthien root]# route add default gw 10.10.10.

[root@luthien root]# route

Kernel IP routing table

Destination Gateway Genmask Flags Metric Ref Use Iface 10.0.0.0 * 255.0.0.0 U 0 0 0 eth 127.0.0.0 * 255.0.0.0 U 0 0 0 lo default 10.10.10.1 0.0.0.0 UG 0 0 0 eth

[root@luthien root]# ifconfig

eth0 Link encap:Ethernet HWaddr 00:01:02:A4:DB: inet addr:10.10.10.15 Bcast:10.255.255.255 Mask:255.0.0. UP BROADCAST RUNNING MULTICAST MTU:1500 Metric: RX packets:0 errors:0 dropped:0 overruns:0 frame: TX packets:15 errors:0 dropped:0 overruns:0 carrier: collisions:0 txqueuelen: RX bytes:0 (0.0 b) TX bytes:900 (900.0 b)

Interrupt:11 Base address:0xe

lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0. UP LOOPBACK RUNNING MTU:16436 Metric: RX packets:5403 errors:0 dropped:0 overruns:0 frame: TX packets:5403 errors:0 dropped:0 overruns:0 carrier: collisions:0 txqueuelen: RX bytes:368633 (359.9 Kb) TX bytes:368633 (359.9 Kb)

[root@luthien root]# ifconfig eth0 10.10.10.15 up netmask 255.255.255. [root@luthien root]# ifconfig eth0 Link encap:Ethernet HWaddr 00:01:02:A4:DB: inet addr:10.10.10.15 Bcast:10.255.255.255 Mask:255.255.255. UP BROADCAST RUNNING MULTICAST MTU:1500 Metric: RX packets:0 errors:0 dropped:0 overruns:0 frame: TX packets:15 errors:0 dropped:0 overruns:0 carrier: collisions:0 txqueuelen: RX bytes:0 (0.0 b) TX bytes:900 (900.0 b) Interrupt:11 Base address:0xe

lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0. UP LOOPBACK RUNNING MTU:16436 Metric: RX packets:5707 errors:0 dropped:0 overruns:0 frame: TX packets:5707 errors:0 dropped:0 overruns:0 carrier: collisions:0 txqueuelen: RX bytes:389393 (380.2 Kb) TX bytes:389393 (380.2 Kb)

[root@luthien root]# minicom

Welcome to minicom 2.00.

OPCIONES: History Buffer, F-key Macros, Search History Buffer, I18n Compilado en Jan 25 2003, 00:15:18.

Presione CTRL-A Z para obtener ayuda sobre teclas especiales

Rb>AT S7=45 S0=0 L1 V1 X4 &c1 E1 Q ^ % Invalid input detected at '^' marker.

Rb>enable

Password:

Rb#configure terminal

Enter configuration commands, one per line. End with CNTL/Z.

Rb(config-router)#end

Rb# *Mar 1 00:26:39.815: %SYS-5-CONFIG_I: Configured from console by consoleshow p% Type "show ?" for a list of subcommands

Rb#show 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, 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 not set

C 193.146.28.0/24 is directly connected, Ethernet 10.0.0.0/24 is subnetted, 1 subnets C 10.10.10.0 is directly connected, Ethernet

Rb#show 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, 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 not set

C 193.146.28.0/24 is directly connected, Ethernet 10.0.0.0/24 is subnetted, 1 subnets C 10.10.10.0 is directly connected, Ethernet

Rb#show 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, 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 not set

C 193.146.28.0/24 is directly connected, Ethernet

10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks R 10.0.0.0/8 [120/1] via 193.146.28.3, 00:00:00, Ethernet [120/1] via 193.146.28.4, 00:00:25, Ethernet C 10.10.10.0/24 is directly connected, Ethernet Rb#

Rb con0 is now available

Press RETURN to get started.

Rb>enable Password:

Rb#configure terminal

Enter configuration commands, one per line. End with CNTL/Z.

Rb(config)#$ privada 193.146.28.2 193.146.28.2 netmask 255.255.255.

Rb(config)#access-list 101 permit ip 10.10.10.0 0.0.0.255 any

Rb(config)#ip nat inside source list 101 pool privada overload

Rb(config)#interface ethernet

Rb(config-if)#ip nat inside

Rb(config-if)#exit

Rb(config)#interface ethernet

Rb(config-if)#ip nat outside

Rb(config-if)#exit

Rb(config)#interface ethernet

Rb(config-if)#exit

Rb(config)#exit

Rb#

Queueing strategy: fifo Output queue: 0/100 (size/max) 5 minute input rate 0 bits/sec, 0 packets/sec 5 minute output rate 0 bits/sec, 0 packets/sec 0 packets input, 0 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 input packets with dribble condition detected 350 packets output, 47046 bytes, 0 underruns 0 output errors, 0 collisions, 2 interface resets 0 babbles, 0 late collision, 0 deferred 0 lost carrier, 0 no carrier 0 output buffer failures, 0 output buffers swapped out

Rb#show interface ethernet

Ethernet1 is up, line protocol is up Hardware is PQUICC_FEC, address is 000a.f409.192f (bia 000a.f409.192f) Internet address is 193.146.28.2/ MTU 1500 bytes, BW 128000 Kbit, DLY 1000 usec, reliability 255/255, txload 1/255, rxload 1/ Encapsulation ARPA, loopback not set Keepalive set (20 sec) Half-duplex, 10Mb/s ARP type: ARPA, ARP Timeout 04:00: Last input 00:00:05, output 00:00:01, 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/40 (size/max) 5 minute input rate 0 bits/sec, 0 packets/sec 5 minute output rate 0 bits/sec, 0 packets/sec 1002 packets input, 259662 bytes, 0 no buffer Received 1002 broadcasts, 0 runts, 0 giants, 0 throttles 0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored 0 input packets with dribble condition detected 489 packets output, 52972 bytes, 0 underruns 18 output errors, 0 collisions, 5 interface resets 0 babbles, 0 late collision, 0 deferred 18 lost carrier, 0 no carrier 0 output buffer failures, 0 output buffers swapped out

Rb#

Rb#show ip nat translation

Pro Inside global Inside local Outside local Outside global icmp 193.146.28.2:42796 10.10.10.15:42796 193.146.28.15:42796 193.146.28.15:4276icmp 193.146.28.2:42540 10.10.10.15:42540 193.146.28.15:42540 193.146.28.15:4250Rb#show ip nat translation Pro Inside global Inside local Outside local Outside global

udp 193.146.28.2:1028 10.10.10.15:1028 193.146.28.15:33438 193.146.28.15:3348udp 193.146.28.2:1028 10.10.10.15:1028 193.146.28.15:33439 193.146.28.15:3349udp 193.146.28.2:1028 10.10.10.15:1028 193.146.28.15:33440 193.146.28.15:3340udp 193.146.28.2:1029 10.10.10.15:1029 10.3.10.2:53 10.3.10.2: udp 193.146.28.2:1030 10.10.10.15:1030 10.3.10.2:53 10.3.10.2: udp 193.146.28.2:1031 10.10.10.15:1031 10.3.10.2:53 10.3.10.2:

Rb#