lecture
in color
ifconfig.
/etc/hosts
named.
nslookup.
resolv.conf.
ping
traceroute
subnet gateway interface 130.64/16 10.1.1.30 eth0 192.168.1/24 10.1.1.20 eth0 192.168.2/24 10.1.1.10 eth0 192.168.2/24 10.1.1.10 eth0 10.1.1/24 10.1.1.3 eth0 default 10.2.1.50 eth1
eth0? Why? netstat is nicer and tells you it's local. I erased that. netstat -rn.
arp -a.
00001010 00000010 00000101 00000001 10.2.5.1 00001010 00000010 00000101 00001111 10.2.5.15 00001010 00000010 00000101 00010000 10.2.5.16 00001010 00000010 00000101 00011110 10.2.5.30so you can utilize
11111111 11111111 11111111 11110000 255.255.255.240or
11111111 11111111 11111111 00000001 255.255.255.1So the answer is 10.2.5.0/28 or 10.2.5.0/255.255.255.240
% nslookup > set type=ptr > 13.25.64.130.in-addr.arpa.
ifconfig eth0 address 10.2.5.1 mask 255.255.255.0 broadcast 10.2.5.255
from 0.0.0.0/0 to 10.2.45/24 deny from 0.0.0.0/0 to 10.2.46/24 allow from 10.2/16 to 10.2.50/16 allow from 0.0.0.0/0 to 10.2.40/24 denyWhich of the following packets get through?
from 0.0.0.0/0 to 10.2.50.33 port 22 masqWhat happens to a packet sent to 10.2.50.33:22? By what mechanism are responses sent back to the calling host?
lecture
in color