Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Setting an IPv6 device/interface using ipconfig & route commands: (3 Items)
   
Setting an IPv6 device/interface using ipconfig & route commands  
Hi,

I'm trying to configure a device/interface manually using ipconfig and route.
I have the following parameters:
- IPv6 address
- Prefix len
- Default IPv6 gateway
- device name

I'm using the following syntax

ipconfig <device name> inet6 <ip_address> <prefix_len> up

route –v add –inet6 :: <gateway_address>%<device_name>

I can see that the ipconfing is being set, and the entries are set into the routing table, but I think that there's 
something incomplete with this syntax, since I can't open sockets and connect to other IPv6's... The network 
configuration has been tested, and I should be able to make IPv6 socket connections.

Is there anything I should add to the two commands I'm invoking?

Thanks
Re: Setting an IPv6 device/interface using ipconfig & route commands  
I think that "should" work. (Assuming you meant ifconfig not ipconfig
right?)

Can you try ping6 -n to the default gateway%device? What does ndp -c say
while you ping? What does ndp -c say?

Cheers!
/P

On 11-09-06 4:01 PM, "David Arinzon" <community-noreply@qnx.com> wrote:

>Hi,
>
>I'm trying to configure a device/interface manually using ipconfig and
>route.
>I have the following parameters:
>- IPv6 address
>- Prefix len
>- Default IPv6 gateway
>- device name
>
>I'm using the following syntax
>
>ipconfig <device name> inet6 <ip_address> <prefix_len> up
>
>route ­v add ­inet6 :: <gateway_address>%<device_name>
>
>I can see that the ipconfing is being set, and the entries are set into
>the routing table, but I think that there's something incomplete with
>this syntax, since I can't open sockets and connect to other IPv6's...
>The network configuration has been tested, and I should be able to make
>IPv6 socket connections.
>
>Is there anything I should add to the two commands I'm invoking?
>
>Thanks
>
>
>
>_______________________________________________
>
>Networking Drivers
>http://community.qnx.com/sf/go/post88663
Re: Setting an IPv6 device/interface using ipconfig & route commands  
I've ran NDP -a:

# ndp -a
Neighbor                        Linklayer Address  Netif Expire    St Flgs Prbs
2002:c023:9c17:d08:e86d:e1d8:8c73:a9fc (incomplete) msm0 permanent R
fe80::202:ff:fe00:1%msm0        (incomplete)        msm0 permanent R
fe80::b093:fd2:ecd6:a7e1%msm0   02:50:f3:00:00:00   msm0 22s       R  R

I would like to note that I've used rtsold and auto configuration before, and it worked OK, but now when I try 
configuring by myself [using ifconfig + route] it doesn't.

I'm attaching a tcpdump from when the it tries to connect on a socket.

Additionally, when comparing the routing tables between the working and non-working versions, I can see that the address
 of the gateway is mapped to 00:00:00:00:00:00

fe80::a02d:adc:6a8d:ca06%msm0      00:00:00:00:00:00

While when I configure by myself, it's mapped to something different

fe80::a02d:adc:6a8d:ca06%msm0      link#3 


I'm pretty sure there's something wrong with my syntax, and I forgot to mention some flags.

Your help will be much appreciated!

Attachment: Text tcpdump.txt 2.27 KB