Docsity

Configuración de red: ifconfig, route y ping en Linux, Ejercicios de Ingeniería Infórmatica

Toggle sidebar
bg1
[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.255.255.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)
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:11065 errors:0 dropped:0 overruns:0 frame:0
TX packets:11065 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:755288 (737.5 Kb) TX bytes:755288 (737.5 Kb)
[root@luthien root]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.10.10.0 * 255.255.255.0 U 0 0 0 eth0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
[root@luthien etc]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.10.10.0 * 255.255.255.0 U 0 0 0 eth0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
[root@luthien /]# 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.255.255.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)
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:21675 errors:0 dropped:0 overruns:0 frame:0
TX packets:21675 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1479781 (1.4 Mb) TX bytes:1479781 (1.4 Mb)
pf3

Vista previa parcial del texto

¡Descarga Configuración de red: ifconfig, route y ping en Linux y más Ejercicios en PDF de Ingeniería Infórmatica solo en Docsity!

[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:11065 errors:0 dropped:0 overruns:0 frame: TX packets:11065 errors:0 dropped:0 overruns:0 carrier: collisions:0 txqueuelen: RX bytes:755288 (737.5 Kb) TX bytes:755288 (737.5 Kb)

[root@luthien root]# route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 10.10.10.0 * 255.255.255.0 U 0 0 0 eth 127.0.0.0 * 255.0.0.0 U 0 0 0 lo

[root@luthien etc]# route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 10.10.10.0 * 255.255.255.0 U 0 0 0 eth 127.0.0.0 * 255.0.0.0 U 0 0 0 lo

[root@luthien /]# 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:21675 errors:0 dropped:0 overruns:0 frame: TX packets:21675 errors:0 dropped:0 overruns:0 carrier: collisions:0 txqueuelen: RX bytes:1479781 (1.4 Mb) TX bytes:1479781 (1.4 Mb)

[root@luthien /]# route add default gw 10.10.10. [root@luthien /]# route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 10.10.10.0 * 255.255.255.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 /]# 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 MULTICAST MTU:1500 Metric: RX packets:0 errors:0 dropped:0 overruns:0 frame: TX packets:51 errors:0 dropped:0 overruns:0 carrier: collisions:0 txqueuelen: RX bytes:0 (0.0 b) TX bytes:3060 (2.9 Kb) 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:37640 errors:0 dropped:0 overruns:0 frame: TX packets:37640 errors:0 dropped:0 overruns:0 carrier: collisions:0 txqueuelen: RX bytes:2528914 (2.4 Mb) TX bytes:2528914 (2.4 Mb)

[root@luthien /]# ping 193.146.28. PING 193.146.28.15 (193.146.28.15) 56(84) bytes of data. 64 bytes from 193.146.28.15: icmp_seq=2 ttl=63 time=3.82 ms

--- 193.146.28.15 ping statistics ---

2 packets transmitted, 1 received, 50% packet loss, time 1014ms rtt min/avg/max/mdev = 3.824/3.824/3.824/0.000 ms

[root@luthien /]# ping 193.146.28.

PING 193.146.28.15 (193.146.28.15) 56(84) bytes of data. 64 bytes from 193.146.28.15: icmp_seq=1 ttl=63 time=3.02 ms 64 bytes from 193.146.28.15: icmp_seq=2 ttl=63 time=1.20 ms 64 bytes from 193.146.28.15: icmp_seq=3 ttl=63 time=1.21 ms 64 bytes from 193.146.28.15: icmp_seq=4 ttl=63 time=1.25 ms 64 bytes from 193.146.28.15: icmp_seq=5 ttl=63 time=1.22 ms 64 bytes from 193.146.28.15: icmp_seq=6 ttl=63 time=1.21 ms 64 bytes from 193.146.28.15: icmp_seq=7 ttl=63 time=1.22 ms 64 bytes from 193.146.28.15: icmp_seq=8 ttl=63 time=1.20 ms

--- 193.146.28.15 ping statistics ---