On Wed, 21 Dec 2022, Stefan Niestegge wrote: > > > > ip address add 192.168.1.10/24 dev eth0 > ok > > ip route add default via 192.168.1.1 > ip: RTNETLINK answers: Network is unreachable > > > > > where "192.168.1.10/24" is the IP address of the Falcon machine and > > "192.168.1.1" is the default gateway address (router). > >
ip address add 192.168.1.10/24 dev eth0 ip link set dev eth0 up ip route add default via 192.168.1.1 > There are tons of messages, not sure what to look for. Here a the first few > lines: > > beetle@beetles-x1:~$ sudo tcpdump > tcpdump: verbose output suppressed, use -v or -vv for full protocol decode > listening on wlp4s0, link-type EN10MB (Ethernet), capture size 262144 bytes > 15:51:48.942029 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, > Request from de:97:6c:82:0d:3f (oui Unknown), length 300 > 15:51:48.947267 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, > Request from de:97:6c:82:0d:3f (oui Unknown), length 300 > 15:51:48.947287 IP beetles-x1.58070 > raspberrypi.domain: 37774+ PTR? > 255.255.255.255.in-addr.arpa. (46) > 15:51:48.951890 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, > Request from de:97:6c:82:0d:3f (oui Unknown), length 300 > 15:51:48.953492 IP 212.6.122.227.imaps > beetles-x1.42188: Flags [P.], seq > 1825740149:1825740188, ack 2263715372, win 19229, options [nop,nop,TS val > 892030802 ecr 2377167262], length 39 > 15:51:48.953557 IP beetles-x1.42188 > 212.6.122.227.imaps: Flags [.], ack 39, > win 501, options [nop,nop,TS val 2377285289 ecr 892030802], length 0 > 15:51:48.956284 IP beetles-x1.42188 > 212.6.122.227.imaps: Flags [P.], seq > 1:29, ack 39, win 501, options [nop,nop,TS val 2377285292 ecr 892030802], > length 28 > 15:51:48.970077 IP beetles-x1.53927 > raspberrypi.domain: 32763+ PTR? > 35.178.168.192.in-addr.arpa. (45) > 15:51:48.970233 IP 212.6.122.227.imaps > beetles-x1.42188: Flags [P.], seq > 39:119, ack 29, win 19257, options [nop,nop,TS val 892030819 ecr 2377285292], > length 80 > 15:51:49.012269 IP beetles-x1.34285 > raspberrypi.domain: 57229+ PTR? > 227.122.6.212.in-addr.arpa. (44) > 15:51:49.014926 IP 212.6.122.227.imaps > beetles-x1.42188: Flags [P.], seq > 193:339, ack 112, win 19340, options [nop,nop,TS val 892030862 ecr > 2377285333], length 146 > 15:51:49.029149 IP 212.6.122.227.imaps > beetles-x1.42188: Flags [.], ack 163, > win 19391, options [nop,nop,TS val 892030878 ecr 2377285352], length 0 > 15:51:49.034809 IP 212.6.122.227.imaps > beetles-x1.42188: Flags [P.], seq > 339:459, ack 163, win 19391, options [nop,nop,TS val 892030882 ecr > 2377285352], length 120 > 15:51:49.082325 IP beetles-x1.42188 > 212.6.122.227.imaps: Flags [.], ack 459, > win 501, options [nop,nop,TS val 2377285418 ecr 892030882], length 0 > 15:51:50.038226 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, > Request from de:97:6c:82:0d:3f (oui Unknown), length 300 > 15:51:50.742889 IP beetles-x1.41832 > 212.6.122.227.imaps: Flags [P.], seq > 1189147328:1189147360, ack 2611554090, win 980, options [nop,nop,TS val > 2377287078 ecr 892030534], length 32 > 15:51:50.757617 IP 212.6.122.227.imaps > beetles-x1.41832: Flags [.], ack 32, > win 28894, options [nop,nop,TS val 892032607 ecr 2377287078], length 0 > 15:51:50.764907 IP 212.6.122.227.imaps > beetles-x1.41832: Flags [P.], seq > 1:33, ack 32, win 28894, options [nop,nop,TS val 892032614 ecr 2377287078], > length 32 > 15:51:50.765003 IP beetles-x1.41832 > 212.6.122.227.imaps: Flags [.], ack 33, > win 980, options [nop,nop,TS val 2377287100 ecr 892032614], length 0 > 15:51:50.800658 IP beetles-x1.36748 > 212.6.122.227.imaps: Flags [P.], seq > 365179412:365179444, ack 208264886, win 501, options [nop,nop,TS val > 2377287136 ecr 892030607], length 32 > 15:51:50.813539 IP 212.6.122.227.imaps > beetles-x1.36748: Flags [.], ack 32, > win 26842, options [nop,nop,TS val 892032663 ecr 2377287136], length 0 > 15:51:50.821085 IP 212.6.122.227.imaps > beetles-x1.36748: Flags [P.], seq > 1:33, ack 32, win 26842, options [nop,nop,TS val 892032670 ecr 2377287136], > length 32 > 15:51:50.821123 IP beetles-x1.36748 > 212.6.122.227.imaps: Flags [.], ack 33, > win 501, options [nop,nop,TS val 2377287156 ecr 892032670], length 0 > 15:51:51.063946 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, > Request from de:97:6c:82:0d:3f (oui Unknown), length 300 > 15:51:51.067304 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, > Request from de:97:6c:82:0d:3f (oui Unknown), length 300 > 15:51:51.068661 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, > Request from de:97:6c:82:0d:3f (oui Unknown), length 300 > 15:51:51.124127 IP beetles-x1.42188 > 212.6.122.227.imaps: Flags [P.], seq > 163:195, ack 459, win 501, options [nop,nop,TS val 2377287459 ecr 892030882], > length 32 > 15:51:51.138182 IP 212.6.122.227.imaps > beetles-x1.42188: Flags [.], ack 195, > win 19423, options [nop,nop,TS val 892032988 ecr 2377287459], length 0 > 15:51:51.149183 IP 212.6.122.227.imaps > beetles-x1.42188: Flags [P.], seq > 459:491, ack 195, win 19423, options [nop,nop,TS val 892032998 ecr > 2377287459], length 32 > 15:51:51.149254 IP beetles-x1.42188 > 212.6.122.227.imaps: Flags [.], ack 491, > win 501, options [nop,nop,TS val 2377287484 ecr 892032998], length 0 > 15:51:52.086321 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, > Request from de:97:6c:82:0d:3f (oui Unknown), length 300 > 15:51:52.094574 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, > Request from de:97:6c:82:0d:3f (oui Unknown), length 300 > 15:51:52.094616 1c:ed:6f:bf:f0:59 (oui Unknown) > Broadcast, ethertype Unknown > (0x88e1), length 60: > 0x0000: 0000 a000 b052 486d be7f 0000 0000 0000 .....RHm........ > 0x0010: 0000 0000 0000 0000 0000 0000 0000 0000 ................ > 0x0020: 0000 0000 0000 0000 0000 0000 0000 .............. > 15:51:52.094787 1c:ed:6f:bf:f0:59 (oui Unknown) > Broadcast, ethertype Unknown > (0x8912), length 60: > 0x0000: 0170 a000 0000 1f84 6da3 97a2 5553 bef1 .p......m...US.. > 0x0010: fcf9 796b 5214 13e9 e200 0000 0000 0000 ..ykR........... > 0x0020: 0000 0000 0000 0000 0000 0000 0000 .............. > > I see packets leaving de:97:6c:82:0d:3f but no packets bound for de:97:6c:82:0d:3f. Maybe check out the dhcp daemon logs. > > > > 4) Use IPv6 with SLAAC :) > > not getting this joke I imagine that when you try SLAAC you'll probably get the joke. (I don't use it so I can't help much.)