FS#10978 - [initscripts] net: ipv6 over ipv4 tunneling
Attached to Project:
Arch Linux
Opened by Daniel Kaminski (maniel) - Tuesday, 22 July 2008, 14:07 GMT
Last edited by Tom Gundersen (tomegun) - Saturday, 04 June 2011, 18:17 GMT
Opened by Daniel Kaminski (maniel) - Tuesday, 22 July 2008, 14:07 GMT
Last edited by Tom Gundersen (tomegun) - Saturday, 04 June 2011, 18:17 GMT
|
Details
hi, attached a patch that changes rtup/rtdown in
/etc/rc.d/network to make whose usable configuring ipv6 over
ipv4 tunneling, like that:
lo="lo 127.0.0.1" eth0="dhcp" sit0="sit0 inet6 tunnel ::<server ipv4 address>" sit1="sit1 inet6 add <client ipv6 address>/64" INTERFACES=(lo eth0 sit0 sit1) gateway="default gw 192.168.0i.1" ipv6="::/0 dev sit1" ROUTES=(!gateway ipv6) patched /etc/rc.d/network just checks $routecfg for double colon and then adds '-A inet6' to `route` cmdline |
This task depends upon
Closed by Tom Gundersen (tomegun)
Saturday, 04 June 2011, 18:17 GMT
Reason for closing: No response
Additional comments about closing: Use (or file bug against) netcfg.
Saturday, 04 June 2011, 18:17 GMT
Reason for closing: No response
Additional comments about closing: Use (or file bug against) netcfg.
* Use $() syntax instead of backticks
* git patches are cooler, and let you write your own commit messages, and we can preserve the author easier
should be
if grep -q :: <<< $routecfg;
Applied. Everything look ok?
I just noticed after my morning boot[:)] that on the start /etc/rc.d/network says there is no INET6 support in system [ifconfig's output?] but when i make /etc/rc.d/network restart after the system is up everything works flawlessly, the only workaround is to add 'sit' to $MODULES in /etc/rc.conf [i use $MOD_AUTOLOAD], then it works after the boot. Attached a patch that could be helpfull. BTW, anyone knows better string checking than 'grep -q string << $var' in bash?:)