Project

General

Profile

Actions

Feature #2413

closed

Allow IPv6 interface configuration from the menu

Added by Seth Mos over 12 years ago. Updated over 11 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Console Menu
Target version:
Start date:
05/08/2012
Due date:
% Done:

90%

Estimated time:
Plus Target Version:
Release Notes:

Description

The current console menu only allows for IPv4 interface configuration. We need to add support for IPv6 interface configuration as well.

Interface configs are not applied correctly for v4 in certain situations, like reassignment.

Actions #1

Updated by Jim Pingle over 12 years ago

That second bit about v4 already has a ticket - #2074

Actions #2

Updated by Seth Mos over 12 years ago

  • Assignee changed from Seth Mos to Darren Embry
Actions #3

Updated by Darren Embry over 12 years ago

  • Status changed from New to Feedback
  • Assignee changed from Darren Embry to Seth Mos
  • % Done changed from 0 to 80

implemented in c1361a9f

I've done basic testing but this needs a lot more testing than i'm able to do so i'm reassigning to you.

Actions #4

Updated by Seth Mos over 12 years ago

  • Status changed from Feedback to New

OPtion 2 Set interface IP address.
When configuring interface WAN, as dhcp and dhcp6 I get the url http://dhcp/ displayed
When configuring interface WAN for dhcp6 it does not set $config['interfaces']['wan']['ipaddrv6'] to dhcp6. Are you confused with the dhcp6 server? Displayed as IPv6 None in the UI.
Setting the WAN address to a static IPv6 address works. Correctly listed as Static IPv6 in the UI.
Tried to set to dhcp6 again, still set to Static IPv6. I think it's not setting the tag.

Feature++:
- IP configuration
- show list of types for IPv4. 1 - DHCP, 2 - Static, 3 - PPPoE (pppoe needs usernames and things too)
- Add IPv4 gateway for Static
- show list of types for IPv6. 1 - DHCP6, 2 - Static, 3- 6to4, 4 - 6rd
- Add IPv6 gateway for Static

Although we don't need all of the possible configuration types we do need to be able to add the static gateway for IPv4 and IPv6 since that has been sorely missed for over a year now.

Basically that entails shooting a new gateway entry into $config['gateways'];

print_r($config['gateways']);
Array
(    [gateway_item] => Array
        (
            [0] => Array
                (
                    [interface] => wan
                    [gateway] => $ipv4address
                    [name] => GW_WAN //Make up a name here
                    [weight] => 1
                    [ipprotocol] => inet // inet for IPv4, inet6 for IPv6
                    [interval] => 
                    [descr] => Interface wan Gateway // Add silly description
                    [defaultgw] =>  // This bit needs to be set to true if this is the 1st IPv4 and IPv6 gateway on the system
                )
)

Hope this helps

Actions #5

Updated by Seth Mos over 12 years ago

  • Assignee changed from Seth Mos to Darren Embry
Actions #6

Updated by Darren Embry over 12 years ago

When configuring interface WAN, as dhcp and dhcp6 I get the url http://dhcp/ displayed

Now should be showing IPv6 webConfigurator URLs (i.e., http://dhcp6/ in your case) along with the IPv4 ones. See b3cb233f.

Actions #7

Updated by Darren Embry over 12 years ago

When configuring interface WAN for dhcp6 it does not set $config['interfaces']['wan']['ipaddrv6'] to dhcp6. Are you confused with the dhcp6 server? Displayed as IPv6 None in the UI.

Should be fixed now in bfaafe28.

Actions #8

Updated by Darren Embry over 12 years ago

  • Assignee changed from Darren Embry to Seth Mos

Tried to set to dhcp6 again, still set to Static IPv6. I think it's not setting the tag.

I'm actually going to just hope that one of my changes above fixed this. Please test and report back. If you're still experiencing this particular problem, then clarify what needs to be set and isn't being set, please. Thanks!

Actions #9

Updated by Seth Mos over 12 years ago

  • Assignee changed from Seth Mos to Darren Embry

Another new feature for the console menu to clarify console configuration. With the last as it is now, it is hard to see which assigned interface ties into which real interface. With my configuration on my soekris the menu has already scrolled off the screen at this point to peek.

1 - WAN
2 - LAN
3 - WLANC
4 - OPT2
5 - WLANAP
6 - WANIPV6
7 - SIXXSV6
8 - 3G

Add the real interface after the friendly interface name 1 - WAN (vr1) 2 - LAN (vr0) 8 - 3G (ppp0)
Maybe add the existing configured settings for a interface? e.g. static, staticv6, dhcp etc.

Note that http://dhcp and http://dhcp6 are not valid, it appears to be almost right.
http://192.168.2.254:/

there is a colon in there, but I'm wondering where my port 8888 went.

Actions #10

Updated by Darren Embry over 12 years ago

Note that http://dhcp and http://dhcp6 are not valid, it appears to be almost right.
http://192.168.2.254:/

there is a semi colon in there, but I'm wondering where my port 8888 went.

just fixed this in d71371bc

Actions #11

Updated by Darren Embry over 12 years ago

This is what you will now see:

Available interfaces:

1 - WAN (em0 - dhcp, dhcp6)
2 - LAN (em1 - static, staticv6)
3 - OPT1 (em2 - static, staticv6)
4 - OPT2 (em3)
5 - OPT3 (ppp0)
6 - OPT4 (usbus0 - dhcp, dhcp6)

Enter the number of the interface you wish to configure:

implemented in:
6499a7d5
0098aa73

Actions #12

Updated by Darren Embry over 12 years ago

  • Assignee changed from Darren Embry to Seth Mos
  • % Done changed from 80 to 90

Okay, you can set gateway IP addresses from the command line now. See config:c63e3594 and config:d23b53eb.

Punting back to you for further testing, Seth.

Actions #13

Updated by Renato Botelho almost 12 years ago

  • Status changed from New to Feedback
Actions #14

Updated by Chris Buechler over 11 years ago

  • Status changed from Feedback to Resolved
Actions

Also available in: Atom PDF