Please let me know if there is a way (commands, etc.) to reflect the settings entered on the command line as root in rc.conf.
Code:# ifconfig gi0 create inet6 tunnel xxxx :: yyyy: mtu 1460
create_args_gif0="tunnel <local IPv4> <remote IPv4>"
ifconfig_gif0_ipv6="inet6 <local IPv6> <remote IPv6> prefixlen 64"
Nothing to be ashamed off, this is a tricky case, I had quite a bit of trouble setting this up myself.I'm ashamed to say that I don't know how to write it in rc.conf that gives the same instructions as this command.
create_args_gif0="tunnel xxxx:: yyyy::"
ifconfig_gif0="up mtu 1460"
This isn't the issue though. The OP is asking how to set up the specific IPv4 over IPv6 IPoE configuration he needs and how to translate the ifconfig(8) commands that's known to work to a configuration suitable for rc.conf. The example I gave was for an IPv6 over IPv4 tunnel, which is the wrong kind of tunnel the OP needs.Read the RTFM sysrc(8) and then you can do like
sysrc create_args_gif0="tunnel <local IPv4> <remote IPv4>"
sysrc ifconfig_gif0_ipv6="inet6 <local IPv6> <remote IPv6> prefixlen 64"
You can browse (read) through /etc/defaults/rc.conf to see what settings are available & their default values.
ifconfig gif0 create inet6 tunnel xxxx :: yyyy: mtu 1460
=
cloned_interfaces="gif0"
ifconfig_gif0_ipv6="inet6 xxxx :: yyyy: prefixlen 64"
create_args_gif0="tunnel xxxx :: yyyy: mtu 1460"
[wishlist] some wizzard please add an EXAMPLES section
First of all that's the wrong format for entries in /etc/rc.conf. This is right:You may set it by executing a command like this. However, if nothing is done, the settings will be lost when the PC is restarted. Therefore, I think it is necessary to describe it in rc.conf.
tcp_drop_synfin="YES"
cupsd_enable="NO"
If I wanted to send those lines from the terminal as entries into /etc/rc.conf I would use:# ifconfig gif0 create inet6 tunnel xxxx :: yyyy aaaa :: bbbb up
# route add -inet6 default -intareface0 gif0
How can I put these two lines in rc.conf?
# echo 'tcp_drop_synfin="YES"' >> /etc/rc.conf
# echo 'cupsd_enable="NO"' >> /etc/rc.conf
ifconfig gif0 create inet6 tunnel xxxx :: yyyy aaaa :: bbbb up
route add -inet6 default -intareface0 gif0