Results 1 to 6 of 6

Thread: unable to ping the same interface after configuring an IPv6 address ubuntu 12.04

  1. #1
    Join Date
    Sep 2011
    Beans
    6

    unable to ping the same interface after configuring an IPv6 address ubuntu 12.04

    I setup IPv6 in my Ubuntu 12.04 on eth0 using command

    ifconfig eth0 inet6 add 2001:db8:fedc:cdef::1/64 but when i try to ping eth0 itself using

    ping6 2001:db8:fedc:cdef::1

    it always gives

    PING 2001:db8:fedc:cdef:0:0:0:1(2001:db8:fedc:cdef::1) 56 data bytes
    From ::1 icmp_seq=1 Destination unreachable: Address unreachable
    From ::1 icmp_seq=2 Destination unreachable: Address unreachable
    From ::1 icmp_seq=3 Destination unreachable: Address unreachable

    I think that it automatically is pinging from ::1 to `2001:db8:fedc:cdef::1

    Command

    ip addr show dev eth0 it gives

    2: eth0:<NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN qlen 1000 link/ether 00:1b:38:a1:a2:50 brd ff:ff:ff:ff:ff:ff inet6 2001:db8:fedc:cdef::1/64 scope global tentative valid_lft forever preferred_lft forever

    Command

    ip -6 route it gives

    2001:db8:fedc:cdef::/64 dev eth0 proto kernel metric 256 fe80::/64 dev eth0 proto kernel metric 256

    Command

    ip6tables -L

    it gives

    Chain INPUT (policy ACCEPT) target prot opt source destination
    Chain FORWARD (policy ACCEPT) target prot opt source destination
    Chain OUTPUT (policy ACCEPT) target prot opt source destination

    Command

    ip6tables -F
    it gives nothing.

    Please help how to solve this.
    Last edited by sumitkamboj; February 22nd, 2013 at 06:47 AM. Reason: Format properly

  2. #2
    Join Date
    May 2006
    Location
    Boston
    Beans
    1,918
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: unable to ping the same interface after configuring an IPv6 address ubuntu 12.04

    man ping

    -I interface address

    Set source address to specified interface address. Argument may be numeric IP address or name of device. When pinging IPv6 link-local address this option is required.
    try this :
    Code:
    ping -I eth0 2001:db8:fedc:cdef::1
    check my post I edited my code
    Last edited by fdrake; February 22nd, 2013 at 07:16 AM. Reason: wrong code order

    blog
    Donations BTC : 12FwoB7uAM5FnweykpR1AEEDVFaTLTYFkS
    DOUBLEPLUSGOOD!!

  3. #3
    Join Date
    Sep 2011
    Beans
    6

    Re: unable to ping the same interface after configuring an IPv6 address ubuntu 12.04

    thanks for reply

    it still not working.
    please help i stuck here from last 15 days.
    i would let you know that i have dual boot ubuntu 12.04. another ubuntu(that is upgraded from ubuntu 11.10) doing the same for me very well.

  4. #4
    prodigy_ is offline May the Ubuntu Be With You!
    Join Date
    Mar 2008
    Beans
    1,219

    Re: unable to ping the same interface after configuring an IPv6 address ubuntu 12.04

    Quote Originally Posted by sumitkamboj View Post
    state DOWN
    What are you trying to ping? ;)

    Quote Originally Posted by sumitkamboj View Post
    NO-CARRIER
    I'd start with connecting a network cable. (If it's already connected, more info is needed. For starters, what's on the other side and has this connection ever worked before). Then try:
    Code:
    sudo ifconfig eth0 up
    Last edited by prodigy_; February 22nd, 2013 at 03:38 PM.

  5. #5
    Join Date
    Sep 2011
    Beans
    6

    Re: unable to ping the same interface after configuring an IPv6 address ubuntu 12.04

    I am trying to set IPv6 address to a Ethernet interface(eth0) so that i can ping the eth0 interface. There is no role of cable because i am trying to ping the same interface in my PC. For example when i try to ping lo(localhost) using command

    ping6 -I lo ::1

    it reply with ICMP request.
    i want to do the same for my eth0 interface so that i get reply from eth0.

  6. #6
    Join Date
    Sep 2011
    Beans
    6

    Re: unable to ping the same interface after configuring an IPv6 address ubuntu 12.04

    this may have clue for someone command

    ip -6 route get 2001:db8:fedc:cdef::1 gives

    2001:db8:fedc:cdef::1 from :: via 2001:db8:fedc:cdef::1 dev eth0 src ::1 metric 0 cache

    why it has src ::1 ?

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •