How to set static IPv6 address/gateway in Arch (NOT tunnel)

Hey Everybody,
Today I decided to install Arch Linux. There was only one thing that I did not understand, and that is how to set up a static IPv6 address. I have native IPv6 connectivity at home and in Debian I used to edit /etc/network/interfaces to set up a static IPv6 adress. Since Arch uses rc.conf, what is the syntax to configure a static IPv6 address?
I used to add something like this in Debian in /etc/network/interfaces:
> iface eth0 inet6 static
> address *my static address*
> netmask 64
> gateway *my gateway address*
Or can I still use /etc/network/interfaces in Arch?
Thank you for help.

It can be done quite easily using the netcfg infrastructure.
/usr/lib/network/connections/ipv6static
#!/bin/bash
. /usr/lib/network/network
ipv6static_up() {
load_profile $1
ip -6 a a ${ADDRESS} dev ${INTERFACE}
if ! [ -z "${GATEWAY}" ]
then
ip -6 r a 2000::/3 via ${GATEWAY} dev ${INTERFACE}
fi
ipv6static_down() {
load_profile $1
ip -6 a d ${ADDRESS} dev ${INTERFACE}
if ! [ -z "${GATEWAY}" ]
then
ip -6 r d 2000::/3 via ${GATEWAY} dev ${INTERFACE}
fi
ipv6static_$1 $2
exit $?
/etc/network.d/eth0static
CONNECTION="ipv6static"
DESCRIPTION="Static configuration for IPv6"
ADDRESS="2001:dead:beef:cafe::1/64"
INTERFACE="eth0"
GATEWAY="2001:feed:dead:beef::1" # Comment this out if no route needed
I haven't tested the gateway part, but I don't see why it wouldn't work. You'll need iproute2, and to read up on netcfg (see http://wiki.archlinux.org/index.php/Network_Profiles) if you have trouble.
Last edited by gunkaaa (2009-09-02 05:19:36)

Similar Messages

  • How to assign static ip address to the server having solaris 10. i.e. nge0

    hi,
    how to assign static ip address to the server having solaris 10. i.e. nge0 i.e. 192.168.3.125 ipshold be persistantt across reboots. what steps do i need to follow to put all information including gateway,netmask etc..Also i want to integrate one init script ..can i integrate it using /etc/init.d/<service name> like linux. and do chkconfig on it?i am not getting complex procedure of SPF and FMRI etc..can u help me?

    Create a file in your /etc directory called hostname.nge0. Add the hostname of your system to this file. In your /etc/hosts file, assign the static IP address you want to the same hostname. You can then disable and enable the network-physical service to configure the network interface:
    svcadm disable network-physical
    svcadm enable network-physical

  • How to set the IP address in L25 Tape library

    I try to set the ip address in L25 tape library. But it is not stored in the NVRAM. For that purpose I restart the device. Then all the values are reset. please tell how to set the ip address.

    Lylee,
    Please take a look at the following links.  The first describes how to distribute your application to multiple targets when using shared variables.  The others are explaining alternate ways to change the IP address of a controller.
    How Do I Distribute a Real-Time Application with Shared Variables to Multiple Users?
    http://digital.ni.com/public.nsf/allkb/20C9771687E6BBB3862570E7006C2284?OpenDocument
    How Do I Change the IP Address of a RT Series Controller (FieldPoint, cRIO, etc) that is not on the Local Subnet?
    http://digital.ni.com/public.nsf/allkb/9F7548F5C781E05586256C75006D8B94?OpenDocument
    Real-Time Target System Replication Tool
    http://digital.ni.com/public.nsf/allkb/444A6A22A6EC50FB86257213004A878C?OpenDocument
    http://digital.ni.com/public.nsf/allkb/DDD15965085446E68625733A00451C7A?OpenDocument
    Can I Programmatically Assign an IP Address to My Real-Time Target?

  • How do set multi ip address on solaris8

    I set multi ip address by following command:
    inconfig hme0:1 159.226.140.55 netmask 255.255.255.0
    system error:not found interface hme0:1.
    I shoud how to set multi ip address on solaris8

    are you sure you have your hostname.hme:1 file in the /etc directory?
    you need to create that file with your hostname in it for virtual ip to work.

  • How to apply Static IP address without disabling data plan

    Our Network team does not want to open all ports on a server mobile staff needs to access.  We ordered static IP addresses and entered them on the firewall so they can specificall access.  Once the IP address is added to the iPad - the data plan is disabled.

    I have just tried giving my iPhone's WiFi a static IP address and it did not stop the cellular data from working.
    I probably misunderstand your problem.
    I presume by a static address you meant the WiFi, was this a company internal IP address or an external one?
    There could be differences between the iPhone and the iPad in how it handles this situation, my iPad is WiFi only so I could not test this.
    If you get no other suggestions on the forum I suggest a visit to Appe store if possible or a phone call to Apple. If you are not under Apple Care there may be a charge for the telephone support but may save a lot of hassle. The option is to ask your Data plan provider.
    Sorry I can offer no other suggestions.

  • How to set static IP for Deskjet Ink Advantage 6525 printer ???

    Hello,
    I try to set static IP address,but when i put the IP address from network configuration page in the browser's address bar ,can't find anything.

    Hi,
    Can you ping it ? It may not have anything in there for browsing.
    Updated: Well actually I use my printer and it shows many things - left side:
    Please refer to the following link:
         http://h30434.www3.hp.com/t5/Printer-All-in-One-Install-Setup-e-g-Windows-8/HP-Photosmart-6525-reboo...
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • How to set the column table so it can not be moved !

    how to set the column table so it can not be moved !

    m_table.getTableHeader().setReorderingAllowed(false);
    m_table.getTableHeader().setResizingAllowed(false);

  • HT2486 want to know how to add pictures to address book that DO NOT appear as fullscreen images on the iPhone but remain as icons with the iPhone background visible

    want to know how to add pictures to address book that DO NOT appear as fullscreen images on the iPhone but remain as icons with the iPhone background visible (see attached image). for some reason, all new contacts added through Mountain Lion appear as fullscreen caller ID images.

    This would be better addressed in the iPhone forum, I would post there as well.

  • How to set static IP for C4599 printer ???

    Was afraid if we clicked 'answered' <per 'answer' below> we may never get an answer to a followup question to 'PrintDoc'  at http://h30434.www3.hp.com/psg/board/message?board.id=Networking&thread.id=5277 .
    Hopefully this re-post will help.
    Question/s...
    1. When trying to set 'static IP', and click on 'this' link ( http://h30434.www3.hp.com/t5/forums/replypage/board-id/Networking/message-id/NetGear%20'RangeMax'%20... ) at your email < below> get...
    "An Unexpected Error has occurred."
    2. Also, getting printing error after HP Director shows C4500 wireless connected and starts printing.
    At 'Component Services' / 'Event Properties' shows...
    "The document http://wwwapps.ups.com/WebTracking/processInputRequest?HTMLVers owned by Alan failed to print on printer HP Photosmart C4500 series (Wireless). Data type: NT EMF 1.008. Size of the spool file in bytes: 48960. Number of bytes printed: 0. Total number of pages in the document: 2. Number of pages printed: 0. Client machine: \\AKM. Win32 error code returned by the print processor: 2250 (0x8ca).
    For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp."
    When click on 'events.aps' link get...
    'Event Viewer' showing 'xpsp2res.dll' file info ?
    Does #2. have anything to do with 'IP' question, and will 'static IP' fix ?"
    Please advise.
    Thanks much.
    Original answer...
    10-13-2009 10:03 AM
    PrintDoc 
    Master's Graduate
    Posts: 1383
    Registered: 08-19-2009
    Message 8 of 10
    Viewed 481 times
    Re: C4599, wireless Error-Printing, unable to 'communicate' with the device ???
    Sure we can set a static IP (actually we are going to reserve an IP address - even better).  But first, please mark the post that helped you solve the problem as "Accepted Solution".
    Connect to the wireless router by typing the IP address of the wireless router in the address field of your browser, then click Enter. 192.168.1.1 is the default IP address of the wireless router. The wireless router will prompt you to enter the user name of 'admin' and the password. The default password is 'password'.
    See the procedure on page 8-16 of this < http://h30434.www3.hp.com/t5/forums/replypage/board-id/Networking/message-id/NetGear%20'RangeMax'%20... > document to reserve and IP address for your printer. 
    You will need the MAC address of your printer (this is on the Network Config Page you printed from the front panel of the printer).
    (Although I am employed by HP, I am speaking for myself and not for HP)
    Original Posters - please mark the post that solves your problem as "Accepted Solution"
    Thanks again for your help !
    akm (XPproSP-3,IE-7,Office2003)
    This question was solved.
    View Solution.

    Thank you for the followup. 
    Just got back to this thread after trying what you suggested re new install program.
    Months ago, when originally tried to install new C4500, spent weekend, literally 4hrs on a Sat and 4hrs the following Sun with HP support on the phone trying to get C4500 wireless to work.
    Finally downloaded a new install program and after installing that and making other numerous setup adjustments, which I cant remember, it worked (the only saving grace for the time spent) for a while.
    But for the sake of trying, we did put in the original disk, just like page 4 (or our original paper manual) instructed (per your last post).
    The disk loaded and the program did its thing and then get...
    "A newer version fo this software is alredy installe on you HP HPPhotosmare C4500 series computer."
    So clicked 'finish'.
    Then loaded...
    PS_AIO_04_C4500_USW_Full_Win_enu_120_210_NB.exe
    ...which we thougth was the new installer program which we downloaded those months ago (same one you suggested).
    Started the '4 step' process.
    Got to 'step 3' and it connected to printer with usb cable.
    Along the way got message from 'network diagnostics'...
    "The PC and the printer are connected to different networks(192.168.1.0 and 192.168.0.0).  They must be connected to the same network.  This can happen when you use the manufacturer's default network name (SSID) and another nearby network is using the same name.
    The gateway address of the printer does not match the network to which the printer is connected. Reconfigure the setting on your printer to match."
    Tried changing ip addresses at network settings, but no help.
    Clicked on disregard and proceed.
    Started 'Network diagnostics' and got...
    HPPhotoshopEssential 'install' bar window.
    Either way, disk or new install program, get pop-up window with message...
    'The feature you are tryong to use is on a CD-ROM or tother removabledisk that inot available. Insert the 'HPPyotosmartEsesential' disk and click OK."
    Moved HP .msi and .cab files to same directory with ...NB.exe file.
    Install went ahead, and then needed 'setup.exe'.
    Opened setup.exe at disk and install went ahead.
    Installed latext updated 'HP Solution Center'.
    It showed both the C4500usb and wireless, but still wireless not 'connected'.
    Ran diagnostics and got same 'diagnostics' message as above.
    Made sure hardware enabled etc.
    How to fix ? 
    Thanks again for your help !
    akm (XPproSP-3,IE-7,Office2003)

  • 10.6.1 Server - how to set up as internet gateway with dynamic IP?

    Hi,
    I installed Snow leopard server 10.6 on a macpro, to share server services (address book, ical, web, mail and VPN) over my office local network, wirelessly (less than 10 computers, all macs).
    I would like to set it as a gateway, as indicated on the manual "getting started", so: Internet > adsl modem > server > Time capsule/extreme (for sharing wirelessly the internet connection and all the services provided by server).
    I don't have a static IP address and i don't have a DNS managed from ISP.
    I tried to read many posts, discussions and apple/resources manuals, but i didn't find out the right way to fix this, with proper configuration of DNS, to keep it standing.
    Which steps should i follow?
    Note: There is a thread from Singapore for setting up server without a static IP, but the configuration is: internet > DSL modem > airport > server (it's not specified how users can connect from outside the network)
    i would like instead to set up the configuration explained above: internet > adsl modem > server > Time capsule/extreme
    Thanks in advance for your help
    Pietro

    Check out this reference material. http://images.apple.com/server/macosx/docs/NetworkServices_Adminv10.6.pdf
    It's a little lengthy and in-depth, but not terribly difficult to walk through.
    In short:
    1.- pick an address range (192.168.1.1-254, for example)
    2.- assign a static ip to your server (192.168.1.1)
    3.- configure your server's network interface to point at your current router (adsl modem), and use your server's static ip for dns lookups
    3.- turn on the dhcp service and configure a scope (192.168.1.20-254, to give you a few addresses at the bottom of the range outside the leasing scope)
    4.- turn on the dns service and configure a forward and reverse lookup zone for your internal domain name (internal.yourcompany.com)
    5.- configure your clients to pull addresses from dhcp
    I'm sure I missed some important stuff, and don't be upset if your neighborhood gets access to your internal resources due to a misconfiguration of your routers acl's.
    If you're still not clear on what to do, bring in an I.T. consultant for a short engagement to initialize and stand up all your services and show you how to support them.

  • How-To Set Up with Uverse Gateway with Airport Extreme

    I just spent hours figuring this out so I thought it would be helpful to someone. Maybe, maybe not. My goal was to get Back to My Mac turned on...but this should also be how you set up your wireless network if you have both an Airport Extreme and a Uverse Gateway.
    As I was trying to setup BTMM, I got a "double NAT" error. To use BTMM, you have to use either Time Capsule or Airport Extreme, so that NAT has to be enabled. That meant I had to figure out how to turn off U-verse's. I looked through the settings but saw nothing about it. Several hours of research--and a useless support call to AT&T--I finally figured it out. Here's the configuration you need, in brief.
    On the Airport Extreme, under Internet > Internet Connections, Connection Sharing must be set to "Share a public IP address". Then under the NAT button, Enable NAT Port Mapping Protocol must be checked.
    Now, unless you doe rest of this configuration, you will get a double DHCP error. So, in the Uverse Gateway settings, you must do this:
    1. Under Wireless, click the option to DISABLE wireless. Click Save.
    2. Under Firewall, click the option with DMZ in the name. On this page, choose your Airport Extreme (whatever you named it). Then scroll down and choose the option that says "Allow All Applications (DMZPlus Mode)". Save that configuration. DO A HARD RESET ON THE AIRPORT EXTREME. Then that should enable a single NAT protocol and BTMM will be on its way. And your wireless network will be set up properly.

    Will the above method work on a set up with a Verizon Modem to a DLink wireless router to a Time Capsule?
    I know of no reason why it would not. Whenever there is another router ahead of the Time Capsule, the Time Capsule must be configured in Briddge Mode. My network has 4 routers. The "main" router is setup to handle DHCP and NAT and the other 3 routers are setup in Bridge Mode. No problems.
    Weird thing is Air Video set up tells me I have a double NAT
    Double NAT occurs when you have two routers on a network both set up to handle DHCP and NAT services. Your Verizon "modem" may be a gateway....a combination modem/router on the same chassis. If that's the case, then every other router on the network must be confgured as a "Bridge".
    If you have the "main" router on the network setup to handle DHCP and NAT, in theory, you can have multiple other routers on the network as long as they are all setup in Bridge Mode. In Bridge Mode, DHCP and NAT are turned off, so the other routers simply pass through the network information from the main router. It's by far the easiest way to configure multiple routers without having to go into special DMZ, port mapping, etc type of configurations.

  • Set Static IP address on Mac clients

    Hi,
    I'm trying to change the IP address on a mac client at startup time to a different value and to be Static type. I need to do it via the command line. I've researched and found out that 'networksetup -setmanual ...' and 'ipconfig set en0 MANUAL ...' would do it, but the 'networksetup' command is not available unless I have ARD installed and 'ipconfig' is not recommended for use other than testing and debug.
    Another option I was looking at is editing /Library/Preferences/SystemConfiguration/preferences.plist and then doing 'changeip ...' command.
    Do you know if there are any other commands that will allow me to change an ip address via the command line, set it to Static/Manual and preferably do it without a reboot?
    Thank you

    Hi Sergey,
    when I use static IP in my jwc_properties.ini it is never picked up, it still uses DHCP. The part where I have configured IP looks like this:
    # Whether static configuration or DHCP server is used do get IP address. Possible values: dhcp,static
    ip.method = static
    # IP address,used with static IP configuration only
    ip.addr = 10.143.144.97
    # Network mask,used with static IP configuration only
    ip.netmask = 255.255.252.0
    # Network gateway,used with static IP configuration only
    ip.gateway = 10.143.144.1
    # DNS server,used with static IP configuration only
    ip.dns =
    # MAC address
    mac.addr =

  • WRE54G expander setting static ip address, then no internet?

    I have set a static ip address on my wired computer for the expander. I can access the setup page, but not the internet. So, I went and set my computer back to " obtain ip address automatically ". Now I can access internet, but not the expander set up page.  I would like to upgrade my firmware, but  need internet and setup page at same time to do this.
    I thought once you set up a specified ip address and added it to your gateway you could then access it anytime when you had the settings changed back  to " obtain an ip address automatically " ? 

    Download the firmware when you have Internet Access, you may download the firmware from here , once the firmware is downloaded you can set-up static ip address on your computer and access your range expander set-up page and upgrade it's firmware...Once the upgrade is done you should reset and re-configure your range expander...
    Make sure you have identical wireless settings on your Range Expander and your Wireless Router...Your Range Expander should be in the same subnet as that of your router...

  • Not able to set static IP address after upgrading to 8.1 from 8.0

    I have a dell vostro 1014 laptop.After upgrading to 8.1 from 8.0 , i am not able to give static IP address in the Internet Protocol version 4 (TCP/IPv4) Properties of my Ethernet card properties.I am getting the following error:
    "COM surrogate has stopped working error"
    In order to access Internet Protocol version 4 (TCP/IPv4) Properties
    again , i need to restart the system
    after restarting my system and when i access Internet Protocol version 4 (TCP/IPv4) Properties  i find that ip address,subnet mask and default gateway( in the
    use following IP Address field) have given has become  empty.But
    preferred DNS server and alternate DNS server enteries are still there.I am able to fetch IP address from the DHCP server
    Does anyone knows how to troubleshoot this problem?

    This problem may occur due to loss of some system files while upgrading your  dell vostro 1014 laptop from 8.0.to 8.1 or unsuccessful upgrade. 
    Try to refresh your laptop by inserting windows 8.1 installation disc.
    To do this go to control panel->recovery->refresh your system without loosing any data
    If you don't have any windows 8.1 installation disc just download from Microsoft website.
    Make sure to choose correct architecture of your windows installation (x86 or x64) when you download.

  • How to Assign Static IP address to iPad?

    I have been having a problem with the wifi connection on my iPad. After much research online, I have narrowed it down to an ip address lease renewal bug. The iPad drops connection when the ip address lease expires. The suggested fix is to assign a static ip address for the iPad based on its MAC address.
    How can I do this?

    I can't answer directly, but the following may help (for HH3B)
    Login to HomeHub
    Goto http://192.168.1.254/html/settings/a_ip_address.html
    Set the lease time to 21 days
    Apply
    Goto http://192.168.1.254/html/settings/a_devices.html
    Click on your iPad
    Choose 'always use this IP address'
    Apply

Maybe you are looking for

  • Windows on Mac Pro will not shut down

    Hi I recently had the MAC Pro the one with 4G RAM, I installed Windows XP on it as well, seems everything is running Ok except that every time when I shut down Windows, it just hang there and I have to press the power button to force it to shut down.

  • Payment Method Supplement issue

    Hi, Is there anyone help me to resolve the issue of using Payment method Supplement. We can use this indicator at the vendor master level or override it at the time of invoice entry.  I tried to use this indicator at the time of posting the vendor in

  • Can I convert a file into a PDF in Adobe Reader and automatically attach it in the Reader?

    I understand that I can merge files online.  What I'd like to do is have my original PDF open and convert an Excel sheet into a PDF that is attached to the original PDF within Reader.  Being able to do all of this in one place is the main reason I'm

  • Torch's calender deleted all of a sudden?

    I'm freaking out right now, I woke up this morning and checked my BB calendar, and there's not a single thing in it, for any date ever. Last night, it was full. I have so much important stuff on there, and I need it back. Is there any way to restore

  • Can I Use a BlackBerry in India with Vodaphone?

    Hello - I am new to this forum.  Can I Use a BlackBerry in India with Vodaphone? Thanks very much. Geoff