Modify

Opened 12 years ago

Closed 12 years ago

Last modified 9 years ago

#101 closed defect (fixed)

add ipv6 addres support

Reported by: rootkit85@… Owned by: florian
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)
@@ -2,10 +2,11 @@

# Uncomment the following statements to change the network configuration


## LAN configuration

-# lan_ifname="br0"
-# lan_proto="static"
-# lan_ipaddr="192.168.1.1"
-# lan_netmask="255.255.255.0"
+lan_ifname="br0"
+lan_proto="static"
+lan_ipaddr="192.168.0.1"
+lan_netmask="255.255.255.0"
+lan_ip6addr="2001:1418:160::1/64"

# lan_gateway=""
# lan_dns=""


@@ -21,11 +22,9 @@

# ppp_mtu=1492


## WAN configuration (PPPoA)

-# wan_proto=pppoa
-# wan_ifname=ppp0
-# atm_vpi=8
-# atm_vci=35
-# ppp_username=my_username
-# ppp_passwd=my_passwd
-# ppp_mtu=1500
-
+wan_proto=pppoa
+wan_ifname=ppp0
+atm_vpi=8
+atm_vci=35
+ppp_username=ilovetechno
+ppp_passwd=technoinmymind
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 (2)

comment:1 Changed 12 years ago by florian

  • Owner changed from developers to florian

Why did you make it ar7 specific ?

comment:2 Changed 12 years ago by nbd

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

added in [2885]

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.