IMPORTANT: Per accedir als fitxer de subversion: http://acacha.org/svn (sense password). Poc a poc s'aniran migrant els enllaços. Encara però funciona el subversion de la farga però no se sap fins quan... (usuari: prova i la paraula de pas 123456)

Comanda ip

$ ip link list 1: lo: <LOOPBACK,UP,10000> mtu 16436 qdisc noqueue

   link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00

2: eth0: <BROADCAST,MULTICAST,UP,10000> mtu 1500 qdisc pfifo_fast qlen 1000

   link/ether 00:17:a4:42:a9:a1 brd ff:ff:ff:ff:ff:ff

3: vmnet1: <BROADCAST,MULTICAST,UP,10000> mtu 1500 qdisc pfifo_fast qlen 1000

   link/ether 00:50:56:c0:00:01 brd ff:ff:ff:ff:ff:ff

4: vmnet8: <BROADCAST,MULTICAST,UP,10000> mtu 1500 qdisc pfifo_fast qlen 1000

   link/ether 00:50:56:c0:00:08 brd ff:ff:ff:ff:ff:ff

Com ?

$ ip address show 1: lo: <LOOPBACK,UP,10000> mtu 16436 qdisc noqueue

   link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
   inet 127.0.0.1/8 scope host lo
   inet6 ::1/128 scope host 
      valid_lft forever preferred_lft forever

2: eth0: <BROADCAST,MULTICAST,UP,10000> mtu 1500 qdisc pfifo_fast qlen 1000

   link/ether 00:17:a4:42:a9:a1 brd ff:ff:ff:ff:ff:ff
   inet 192.168.0.49/24 brd 192.168.0.255 scope global eth0
   inet6 fe80::217:a4ff:fe42:a9a1/64 scope link 
      valid_lft forever preferred_lft forever

3: vmnet1: <BROADCAST,MULTICAST,UP,10000> mtu 1500 qdisc pfifo_fast qlen 1000

   link/ether 00:50:56:c0:00:01 brd ff:ff:ff:ff:ff:ff
   inet 192.168.141.1/24 brd 192.168.141.255 scope global vmnet1
   inet6 fe80::250:56ff:fec0:1/64 scope link 
      valid_lft forever preferred_lft forever

4: vmnet8: <BROADCAST,MULTICAST,UP,10000> mtu 1500 qdisc pfifo_fast qlen 1000

   link/ether 00:50:56:c0:00:08 brd ff:ff:ff:ff:ff:ff
   inet 172.16.248.1/24 brd 172.16.248.255 scope global vmnet8
   inet6 fe80::250:56ff:fec0:8/64 scope link 
      valid_lft forever preferred_lft forever

Com ifconfig

$ ip route show 192.168.0.0/24 dev eth0 proto kernel scope link src 192.168.0.49 172.16.248.0/24 dev vmnet8 proto kernel scope link src 172.16.248.1 192.168.141.0/24 dev vmnet1 proto kernel scope link src 192.168.141.1 169.254.0.0/16 dev eth0 scope link metric 1000 default via 192.168.0.1 dev eth0

Com route!

  1. ip neigh show

9.3.76.42 dev eth0 lladdr 00:60:08:3f:e9:f9 nud reachable 9.3.76.1 dev eth0 lladdr 00:06:29:21:73:c8 nud reachable

Com arp!

$ ping 192.168.0.10 PING 192.168.0.10 (192.168.0.10) 56(84) bytes of data. 64 bytes from 192.168.0.10: icmp_seq=1 ttl=64 time=2.08 ms 64 bytes from 192.168.0.10: icmp_seq=2 ttl=64 time=0.489 ms

--- 192.168.0.10 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1001ms rtt min/avg/max/mdev = 0.489/1.289/2.089/0.800 ms

$ ip neigh show 192.168.0.1 dev eth0 lladdr 00:13:49:87:40:66 REACHABLE 192.168.0.10 dev eth0 lladdr 00:0d:88:cc:b4:60 REACHABLE 192.168.0.7 dev eth0 lladdr 00:17:08:54:85:87 REACHABLE

$ sudo ip neigh delete 192.168.0.10 dev eth0 $ ip neigh show 192.168.0.1 dev eth0 lladdr 00:13:49:87:40:66 STALE 192.168.0.10 dev eth0 FAILED 192.168.0.7 dev eth0 lladdr 00:17:08:54:85:87 REACHABLE

Cal afegir-la a xarxes!!!

$ ip rule list 0: from all lookup 255 32766: from all lookup main 32767: from all lookup default

$ ip route list table local broadcast 192.168.0.255 dev eth0 proto kernel scope link src 192.168.0.49 broadcast 127.255.255.255 dev lo proto kernel scope link src 127.0.0.1 broadcast 172.16.248.255 dev vmnet8 proto kernel scope link src 172.16.248.1 local 192.168.141.1 dev vmnet1 proto kernel scope host src 192.168.141.1 broadcast 192.168.141.0 dev vmnet1 proto kernel scope link src 192.168.141.1 broadcast 192.168.0.0 dev eth0 proto kernel scope link src 192.168.0.49 local 192.168.0.49 dev eth0 proto kernel scope host src 192.168.0.49 broadcast 172.16.248.0 dev vmnet8 proto kernel scope link src 172.16.248.1 local 172.16.248.1 dev vmnet8 proto kernel scope host src 172.16.248.1 broadcast 192.168.141.255 dev vmnet1 proto kernel scope link src 192.168.141.1 broadcast 127.0.0.0 dev lo proto kernel scope link src 127.0.0.1 local 127.0.0.1 dev lo proto kernel scope host src 127.0.0.1 local 127.0.0.0/8 dev lo proto kernel scope host src 127.0.0.1

$ ip route list table main 192.168.0.0/24 dev eth0 proto kernel scope link src 192.168.0.49 172.16.248.0/24 dev vmnet8 proto kernel scope link src 172.16.248.1 192.168.141.0/24 dev vmnet1 proto kernel scope link src 192.168.141.1 169.254.0.0/16 dev eth0 scope link metric 1000 default via 192.168.0.1 dev eth0


Recursos:

ARP

Routers

Microtik:

Monowall:

Firewalls:

Recursos