במקרה קרה ואתחלתי את המחשב מחדש,
זה המצב לפני שעשיתי שינוי כלשהו בטבלאות הניתוב:
[code]
]$ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 10.0.0.1 0.0.0.0 UG 1024 0 0 enp3s0
10.0.0.0 0.0.0.0 255.255.0.0 U 0 0 0 enp3s0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 enp3s0
192.168.1.0 0.0.0.0 255.255.255.0 U 202 0 0 enp3s0
$ dhcpcd -U enp3s0
broadcast_address=192.168.1.255
dhcp_lease_time=7200
dhcp_message_type=5
dhcp_server_identifier=192.168.1.1
domain_name_servers=192.168.1.1
ip_address=192.168.1.102
network_number=192.168.1.0
routers=192.168.1.1
subnet_cidr=24
subnet_mask=255.255.255.0
[quote]
dhcpdump, בזמן הרצת dhcpd:
[code]
$ /usr/bin/dhcpcd -B -K -L -G -c /usr/lib/networkmanager/nm-dhcp-helper enp3s0 &
$ sudo dhcpdump -i enp3s0
[sudo] password for ****:
TIME: 2014-10-29 23:05:40.100
IP: 0.0.0.0 (50:e5:49:30:4f:aa) > 255.255.255.255 (ff:ff:ff:ff:ff:ff)
OP: 1 (BOOTPREQUEST)
HTYPE: 1 (Ethernet)
HLEN: 6
HOPS: 0
XID: 2638727d
SECS: 0
FLAGS: 0
CIADDR: 0.0.0.0
YIADDR: 0.0.0.0
SIADDR: 0.0.0.0
GIADDR: 0.0.0.0
CHADDR: 50:e5:49:30:4f:aa:00:00:00:00:00:00:00:00:00:00
SNAME: .
FNAME: .
OPTION: 53 ( 1) DHCP message type 3 (DHCPREQUEST)
OPTION: 61 ( 19) Client-identifier ff:49:30:4f:aa:00:01:00:01:1b:7e:cd:87:50:e5:49:30:4f:aa
OPTION: 50 ( 4) Request IP address 192.168.1.102
OPTION: 57 ( 2) Maximum DHCP message size 1500
OPTION: 60 ( 52) Vendor class identifier dhcpcd-6.5.1:Linux-3.17.1-1-ARCH:x86_64:GenuineIntel
OPTION: 12 ( 7) Host name ****
OPTION: 145 ( 1) ??? 01 .
OPTION: 55 ( 14) Parameter Request List 1 (Subnet mask)
121 (Classless Static Route)
33 (Static route)
3 (Routers)
6 (DNS server)
12 (Host name)
15 (Domainname)
28 (Broadcast address)
42 (NTP servers)
51 (IP address leasetime)
54 (Server identifier)
58 (T1)
59 (T2)
119 (Domain Search)
---------------------------------------------------------------------------
TIME: 2014-10-29 23:05:40.100
IP: 192.168.1.1 (f8:1a:67:c2:67:1
> 192.168.1.102 (50:e5:49:30:4f:aa)
OP: 2 (BOOTPREPLY)
HTYPE: 1 (Ethernet)
HLEN: 6
HOPS: 0
XID: 2638727d
SECS: 0
FLAGS: 0
CIADDR: 0.0.0.0
YIADDR: 192.168.1.102
SIADDR: 0.0.0.0
GIADDR: 0.0.0.0
CHADDR: 50:e5:49:30:4f:aa:00:00:00:00:00:00:00:00:00:00
SNAME: .
FNAME: .
OPTION: 53 ( 1) DHCP message type 5 (DHCPACK)
OPTION: 54 ( 4) Server identifier 192.168.1.1
OPTION: 51 ( 4) IP address leasetime 7200 (2h)
OPTION: 1 ( 4) Subnet mask 255.255.255.0
OPTION: 3 ( 4) Routers 192.168.1.1
OPTION: 6 ( 4) DNS server 192.168.1.1
---------------------------------------------------------------------------
TIME: 2014-10-29 23:05:49.592
IP: 192.168.1.101 (64:66:b3:6:27:1) > 255.255.255.255 (ff:ff:ff:ff:ff:ff)
OP: 1 (BOOTPREQUEST)
HTYPE: 1 (Ethernet)
HLEN: 6
HOPS: 0
XID: b0037975
SECS: 0
FLAGS: 0
CIADDR: 192.168.1.101
YIADDR: 0.0.0.0
SIADDR: 0.0.0.0
GIADDR: 0.0.0.0
CHADDR: 64:66:b3:06:27:01:00:00:00:00:00:00:00:00:00:00
SNAME: .
FNAME: .
OPTION: 53 ( 1) DHCP message type 8 (DHCPINFORM)
OPTION: 61 ( 7) Client-identifier 01:64:66:b3:06:27:01
OPTION: 12 ( 11) Host name Vika-Laptop
OPTION: 60 (
Vendor class identifier MSFT 5.0
OPTION: 55 ( 13) Parameter Request List 1 (Subnet mask)
15 (Domainname)
3 (Routers)
6 (DNS server)
44 (NetBIOS name server)
46 (NetBIOS node type)
47 (NetBIOS scope)
31 (Perform router discovery)
33 (Static route)
121 (Classless Static Route)
249 (MSFT - Classless route)
43 (Vendor specific info)
252 (MSFT - WinSock Proxy Auto Detect)
---------------------------------------------------------------------------
route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 10.0.0.1 0.0.0.0 UG 1024 0 0 enp3s0
10.0.0.0 0.0.0.0 255.255.0.0 U 0 0 0 enp3s0
192.168.1.0 0.0.0.0 255.255.255.0 U 202 0 0 enp3s0
[/code]
ולאחר מכן כבר שיניתי ידנית את טבלאות הניתוב ל -
[code]
$ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 enp3s0
10.0.0.0 0.0.0.0 255.255.0.0 U 0 0 0 enp3s0
192.168.1.0 0.0.0.0 255.255.255.0 U 202 0 0 enp3s0
[/code]