Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # uci show network
- ...
- network.@device[1]=device
- network.@device[1].name='lan4.602'
- network.@device[1].macaddr='d4:4d:24:4b:b6:f1'
- network.@device[2]=device
- network.@device[2].name='lan4.2000'
- network.@device[2].macaddr='d4:4d:24:4b:b6:f6'
- ...
- network.lan4u=interface
- network.lan4u.device='lan4'
- network.lan4u.proto='dhcp'
- network.lan4t2000=interface
- network.lan4t2000.device='lan4.2000'
- network.lan4t2000.proto='dhcp'
- network.lan4t602=interface
- network.lan4t602.device='lan4.602'
- network.lan4t602.proto='dhcp'
- # ip a | grep lan4 -A 1
- 23: lan4.2000@lan4: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP qlen 1000
- link/ether d4:4d:24:4b:b6:f6 brd ff:ff:ff:ff:ff:ff
- inet 192.168.200.63/24 brd 192.168.200.255 scope global lan4.2000
- 24: lan4.602@lan4: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP qlen 1000
- link/ether d4:4d:24:4b:b6:f1 brd ff:ff:ff:ff:ff:ff
- inet 192.168.100.11/24 brd 192.168.100.255 scope global lan4.602
- # po zmianie macadresów
- # ip a | grep lan4 -A 1
- 20: lan4.2000@lan4: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP qlen 1000
- link/ether d4:4d:24:4b:b6:f7 brd ff:ff:ff:ff:ff:ff
- inet 192.168.200.73/24 brd 192.168.200.255 scope global lan4.2000
- 21: lan4.602@lan4: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP qlen 1000
- link/ether d4:4d:24:4b:b6:f2 brd ff:ff:ff:ff:ff:ff
- inet 192.168.100.21/24 brd 192.168.100.255 scope global lan4.602
- ########### A tu podsłuch po stronie serwera DHCP.
- # nietagowany
- # tcpdump -i eth0.3 port 67 -t
- tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
- listening on eth0.3, link-type EN10MB (Ethernet), capture size 262144 bytes
- IP 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from 8c:3b:ad:3a:ab:88 (oui Unknown), length 300
- IP OpenWrt.lan.67 > 192.168.50.209.68: BOOTP/DHCP, Reply, length 300
- IP 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from 8c:3b:ad:3a:ab:88 (oui Unknown), length 300
- IP OpenWrt.lan.67 > 192.168.50.209.68: BOOTP/DHCP, Reply, length 306
- IP 192.168.50.209.68 > OpenWrt.lan.67: BOOTP/DHCP, Request from 8c:3b:ad:3a:ab:88 (oui Unknown), length 300
- # tagowany vlanem 602
- # tcpdump -i eth0 -t -e vlan | grep -e 'vlan 602'
- 192.168.100.11 > 6c:b0:ce:f9:d8:b1 (oui Unknown), ethertype 802.1Q (0x8100), length 346: vlan 602, p 0, ethertype IPv4, 192.168.100.11.68 > OpenWrt.lan.67: BOOTP/DHCP, Request from 192.168.100.11, length 300
- 192.168.100.11 > Broadcast, ethertype 802.1Q (0x8100), length 346: vlan 602, p 0, ethertype IPv4, 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from 192.168.100.11, length 300
- 192.168.100.11 > Broadcast, ethertype 802.1Q (0x8100), length 346: vlan 602, p 0, ethertype IPv4, 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from 192.168.100.11, length 300
- 6c:b0:ce:f9:d8:b1 (oui Unknown) > 192.168.100.11, ethertype 802.1Q (0x8100), length 346: vlan 602, p 0, ethertype IPv4, OpenWrt.lan.67 > 192.168.100.11.68: BOOTP/DHCP, Reply, length 300
- 6c:b0:ce:f9:d8:b1 (oui Unknown) > 192.168.100.11, ethertype 802.1Q (0x8100), length 346: vlan 602, p 0, ethertype IPv4, OpenWrt.lan.67 > 192.168.100.11.68: BOOTP/DHCP, Reply, length 300
- 192.168.100.11 > Broadcast, ethertype 802.1Q (0x8100), length 346: vlan 602, p 0, ethertype IPv4, 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from 192.168.100.11, length 300
- 6c:b0:ce:f9:d8:b1 (oui Unknown) > 192.168.100.11, ethertype 802.1Q (0x8100), length 346: vlan 602, p 0, ethertype IPv4, OpenWrt.lan.67 > 192.168.100.11.68: BOOTP/DHCP, Reply, length 300
- 6c:b0:ce:f9:d8:b1 (oui Unknown) > 192.168.100.11, ethertype 802.1Q (0x8100), length 46: vlan 602, p 0, ethertype ARP, Request who-has 192.168.100.11 tell OpenWrt.lan, length 28
- 192.168.100.11 > 6c:b0:ce:f9:d8:b1 (oui Unknown), ethertype 802.1Q (0x8100), length 64: vlan 602, p 0, ethertype ARP, Reply 192.168.100.11 is-at 192.168.100.11, length 46
- # tagowany vlanem 2000
- # tcpdump -i eth0 -t -e vlan | grep -e 'vlan 2000'
- tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
- listening on eth0, link-type EN10MB (Ethernet), capture size 262144 bytes
- 192.168.200.63 > 6c:b0:ce:f9:d8:b1 (oui Unknown), ethertype 802.1Q (0x8100), length 346: vlan 2000, p 0, ethertype IPv4, 192.168.200.63.68 > OpenWrt.lan.67: BOOTP/DHCP, Request from 192.168.200.63, length 300
- 192.168.200.63 > Broadcast, ethertype 802.1Q (0x8100), length 346: vlan 2000, p 0, ethertype IPv4, 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from 192.168.200.63, length 300
- 6c:b0:ce:f9:d8:b1 (oui Unknown) > 192.168.200.63, ethertype 802.1Q (0x8100), length 346: vlan 2000, p 0, ethertype IPv4, OpenWrt.lan.67 > 192.168.200.63.68: BOOTP/DHCP, Reply, length 300
- 192.168.200.63 > Broadcast, ethertype 802.1Q (0x8100), length 346: vlan 2000, p 0, ethertype IPv4, 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from 192.168.200.63, length 300
- 6c:b0:ce:f9:d8:b1 (oui Unknown) > 192.168.200.63, ethertype 802.1Q (0x8100), length 346: vlan 2000, p 0, ethertype IPv4, OpenWrt.lan.67 > 192.168.200.63.68: BOOTP/DHCP, Reply, length 300
- 192.168.200.63 > Broadcast, ethertype 802.1Q (0x8100), length 346: vlan 2000, p 0, ethertype IPv4, 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from 192.168.200.63, length 300
- 6c:b0:ce:f9:d8:b1 (oui Unknown) > 192.168.200.63, ethertype 802.1Q (0x8100), length 346: vlan 2000, p 0, ethertype IPv4, OpenWrt.lan.67 > 192.168.200.63.68: BOOTP/DHCP, Reply, length 300
- 6c:b0:ce:f9:d8:b1 (oui Unknown) > 192.168.200.63, ethertype 802.1Q (0x8100), length 46: vlan 2000, p 0, ethertype ARP, Request who-has 192.168.200.63 tell OpenWrt.lan, length 28
- 192.168.200.63 > 6c:b0:ce:f9:d8:b1 (oui Unknown), ethertype 802.1Q (0x8100), length 64: vlan 2000, p 0, ethertype ARP, Reply 192.168.200.63 is-at 192.168.200.63, length 46
- 6c:b0:ce:f9:d8:b1 (oui Unknown) > 192.168.200.63, ethertype 802.1Q (0x8100), length 102: vlan 2000, p 0, ethertype IPv4, OpenWrt.lan > 192.168.200.63: ICMP echo request, id 2890, seq 0, length 64
- 192.168.200.63 > 6c:b0:ce:f9:d8:b1 (oui Unknown), ethertype 802.1Q (0x8100), length 102: vlan 2000, p 0, ethertype IPv4, 192.168.200.63 > OpenWrt.lan: ICMP echo reply, id 2890, seq 0, length 64
- 192.168.200.63 > 6c:b0:ce:f9:d8:b1 (oui Unknown), ethertype 802.1Q (0x8100), length 64: vlan 2000, p 0, ethertype ARP, Request who-has OpenWrt.lan tell 192.168.200.63, length 46
- 6c:b0:ce:f9:d8:b1 (oui Unknown) > 192.168.200.63, ethertype 802.1Q (0x8100), length 46: vlan 2000, p 0, ethertype ARP, Reply OpenWrt.lan is-at 6c:b0:ce:f9:d8:b1 (oui Unknown), length 28
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement