HELLO_wORLD
Very Senior Member
Hi,
I do have an ISP that is giving me static IPv4 and IPv6 addresses, however, the infrastructure requires DHCP to allow my IP, and the lease is 5 minutes because of the setup of the DHCP relay between my ISP and me...
Basic NG configuration was giving me frequents micro cuts.
I was able to easily overcome this for IPv4 by assigning static IP, and using Entware udhcpc with the -T option in a cron job to keep the DHCP relay happy, but not do anything on my side:
/opt/sbin/udhcpc -q -n -t 17 -T 10 -i brwan -r MY IP >/dev/null 2>&1
This is working perfectly.
However, I was unable to reproduce that for IPv6 as neither firmware dhcp6c or Entware dhclient offers the -T option (or equivalent).
Firmware dhcp6c is able to retrieve and set the IP address for brwan and delegation (after changing DAD sysctl in net6conf scripts): /usr/sbin/dhcp6c -c /tmp/dhcp6c.conf -3 brwan and I changed the setup in these scripts for the LAN side: /opt/sbin/dhcpd -6 -cf /opt/bolemo/etc/dhcpd6.conf br0
I still have a few micro cuts everyday for IPv6, and I would like to finally use the same trick as I do for IPv4.
Since there are no DHCPv6 clients with the -T option (not changing the interface), I captured the packets sent by dhcp6c with tcpdump.
If I can simply replay these packets every 2 minutes, it should work, and I could then get rid of any DHCPv6 client and use a static configuration for IPv6.
Now, to replay these packets, I need either tcpreplay (not available on Entware, and I fail to build it), or tcptrace that would allow me to replay using netcat ( https://gist.github.com/qbein/e936fc6afd524c901af4 ). Also not available and was not able to compile.
Any ideas on how I could replay these 4 pcap packets I saved on a file from tcpdump?
And/or how I could successfully compile tcpreplay?
Here is what I get:
I followed these directions: https://github.com/Entware/Entware/wiki/Using-GCC-for-native-compilation
I do have an ISP that is giving me static IPv4 and IPv6 addresses, however, the infrastructure requires DHCP to allow my IP, and the lease is 5 minutes because of the setup of the DHCP relay between my ISP and me...
Basic NG configuration was giving me frequents micro cuts.
I was able to easily overcome this for IPv4 by assigning static IP, and using Entware udhcpc with the -T option in a cron job to keep the DHCP relay happy, but not do anything on my side:
/opt/sbin/udhcpc -q -n -t 17 -T 10 -i brwan -r MY IP >/dev/null 2>&1
This is working perfectly.
However, I was unable to reproduce that for IPv6 as neither firmware dhcp6c or Entware dhclient offers the -T option (or equivalent).
Firmware dhcp6c is able to retrieve and set the IP address for brwan and delegation (after changing DAD sysctl in net6conf scripts): /usr/sbin/dhcp6c -c /tmp/dhcp6c.conf -3 brwan and I changed the setup in these scripts for the LAN side: /opt/sbin/dhcpd -6 -cf /opt/bolemo/etc/dhcpd6.conf br0
I still have a few micro cuts everyday for IPv6, and I would like to finally use the same trick as I do for IPv4.
Since there are no DHCPv6 clients with the -T option (not changing the interface), I captured the packets sent by dhcp6c with tcpdump.
If I can simply replay these packets every 2 minutes, it should work, and I could then get rid of any DHCPv6 client and use a static configuration for IPv6.
Now, to replay these packets, I need either tcpreplay (not available on Entware, and I fail to build it), or tcptrace that would allow me to replay using netcat ( https://gist.github.com/qbein/e936fc6afd524c901af4 ). Also not available and was not able to compile.
Any ideas on how I could replay these 4 pcap packets I saved on a file from tcpdump?
And/or how I could successfully compile tcpreplay?
Here is what I get:
Code:
root@HERMES:/tmp/mnt/sda1/tcpreplay/tcpreplay-4.3.3$ source /opt/bin/gcc_env.sh
--prefix=/opt
checking whether to enable maintainer-specific portions of Makefiles... yes
checking if malloc debugging is wanted... no
checking build system type... armv7l-unknown-linux-gnueabihf
checking host system type... armv7l-unknown-linux-gnueabihf
checking target system type... armv7l-unknown-linux-gnueabihf
checking for cygwin development environment... no
checking for a BSD-compatible install... config/install-sh -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... config/install-sh -c -d
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... configure: error: in `/mnt/optware/tcpreplay/tcpreplay-4.3.3':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details