par ripounet2k » 20 Fév 2006 17:11
Voila un extrait des paquets sniffer apres une requete DHCP sur la MNF
eth0 -> segment ou se trouve le serveur DHCP 192.168.16.0/24
eth1 -> segment ou se trouve le client et le dhcprelay 192.168.4.0/24
[root@mnf user]# tcpdump -n -i eth0 'udp and (port 67 or port 68)' -vv
tcpdump: listening on eth0, link-type EN10MB (Ethernet), capture size 96 bytes
16:04:07.984663 IP (tos 0x0, ttl 64, id 6, offset 0, flags [DF], proto: UDP (17 ), length: 329) 192.168.16.78.67 > 192.168.16.241.67: BOOTP/DHCP, Request from 0 8:00:46:4b:de:1d, length: 301, xid:0x8c53f90, flags: [none] (0x0000)
Gateway IP: 192.168.16.78
Client Ethernet Address: 08:00:46:4b:de:1d [|bootp]
16:04:07.985112 IP (tos 0x0, ttl 128, id 8576, offset 0, flags [none], proto: UD P (17), length: 348) 192.168.16.241.67 > 192.168.16.78.67: BOOTP/DHCP, Reply, le ngth: 320, xid:0x8c53f90, flags: [none] (0x0000)
Your IP: 192.168.16.9
Server IP: 192.168.16.241
Gateway IP: 192.168.16.78
Client Ethernet Address: 08:00:46:4b:de:1d [|bootp]
16:04:07.985962 IP (tos 0x0, ttl 64, id 7, offset 0, flags [DF], proto: UDP (17 ), length: 361) 192.168.16.78.67 > 192.168.16.241.67: BOOTP/DHCP, Request from 0 8:00:46:4b:de:1d, length: 333, xid:0x8c53f90, flags: [none] (0x0000)
Gateway IP: 192.168.16.78
Client Ethernet Address: 08:00:46:4b:de:1d [|bootp]
16:04:07.986685 IP (tos 0x0, ttl 128, id 8577, offset 0, flags [none], proto: UD P (17), length: 353) 192.168.16.241.67 > 192.168.16.78.67: BOOTP/DHCP, Reply, le ngth: 325, xid:0x8c53f90, flags: [none] (0x0000)
Your IP: 192.168.16.9
Gateway IP: 192.168.16.78
Client Ethernet Address: 08:00:46:4b:de:1d [|bootp]
[root@mnf user]# tcpdump -n -i eth1 'udp and (port 67 or port 68)' -vv
tcpdump: listening on eth1, link-type EN10MB (Ethernet), capture size 96 bytes
16:05:18.022483 IP (tos 0x0, ttl 128, id 3324, offset 0, flags [none], proto: UDP (17), length: 328) 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from 08:00:46:4b:de:1d, length: 300, xid:0xe6903b66, flags: [none] (0x0000)
Client Ethernet Address: 08:00:46:4b:de:1d [|bootp]
16:05:18.023446 IP (tos 0x0, ttl 64, id 8, offset 0, flags [DF], proto: UDP (17), length: 348) 192.168.4.1.67 > 255.255.255.255.68: BOOTP/DHCP, Reply, length: 320, xid:0xe6903b66, flags: [none] (0x0000)
Your IP: 192.168.16.9
Server IP: 192.168.16.241
Gateway IP: 192.168.16.78
Client Ethernet Address: 08:00:46:4b:de:1d [|bootp]
16:05:18.024075 IP (tos 0x0, ttl 128, id 3325, offset 0, flags [none], proto: UDP (17), length: 353) 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from 08:00:46:4b:de:1d, length: 325, xid:0xe6903b66, flags: [none] (0x0000)
Client Ethernet Address: 08:00:46:4b:de:1d [|bootp]
16:05:18.024897 IP (tos 0x0, ttl 64, id 9, offset 0, flags [DF], proto: UDP (17), length: 353) 192.168.4.1.67 > 255.255.255.255.68: BOOTP/DHCP, Reply, length: 325, xid:0xe6903b66, flags: [none] (0x0000)
Your IP: 192.168.16.9
Gateway IP: 192.168.16.78
Client Ethernet Address: 08:00:46:4b:de:1d [|bootp]
Merci de votre collaboration