Modify

Opened 11 years ago

Closed 11 years ago

#102 closed defect (duplicate)

add ipv6 addresses to interfaces

Reported by: anonymous Owned by: developers
Priority: normal Milestone:
Component: base system Version:
Keywords: Cc:

Description

Allows an ipv6 address to be added to an interface at bootup.

Index: target/linux/package/base-files/files/ar7-2.4/etc/config/network
===================================================================
--- target/linux/package/base-files/files/ar7-2.4/etc/config/network	(revisione 2576)
+++ target/linux/package/base-files/files/ar7-2.4/etc/config/network	(copia locale)
@@ -6,6 +6,7 @@
 # lan_proto="static"
 # lan_ipaddr="192.168.1.1"
 # lan_netmask="255.255.255.0"
+# lan_ip6addr="2001:0DB8::1/32"
 # lan_gateway=""
 # lan_dns=""
 
Index: package/base-files/default/etc/hotplug.d/net/10-net
===================================================================
--- package/base-files/default/etc/hotplug.d/net/10-net	(revisione 2576)
+++ package/base-files/default/etc/hotplug.d/net/10-net	(copia locale)
@@ -57,9 +57,11 @@
 			ip=$(nvram get ${2}_ipaddr)
 			netmask=$(nvram get ${2}_netmask)
 			gateway=$(nvram get ${2}_gateway)
+			ip6=$(nvram get ${2}_ip6addr)
 	
 			$DEBUG ifconfig $if $ip ${netmask:+netmask $netmask} broadcast + up
 			${gateway:+$DEBUG route add default gw $gateway}
+			[ -n "$ip6" ] && $DEBUG ifconfig $if add $ip6
 	
 			[ -f /etc/resolv.conf ] || {
 				debug "# --- creating /etc/resolv.conf ---"

Attachments (0)

Change History (1)

comment:1 Changed 11 years ago by mbm

  • Resolution set to duplicate
  • Status changed from new to closed

Duplicate; see #101

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.