PICK Request a virtual machine through the CERN Virtual Machine Manager at https://vmm.cern.ch/vmm/ . You need to login with your CERN SSO credentials.

PICK Once you get notification from VMM about the successful creation of the machine, you need to ask the CERN Network Group to enable IPv6 for that machine. Sent an email to ipv6@cernNOSPAMPLEASE.ch with the hostname of your VM.

PICK In order to receive an IPv6 IP address from the dhcp server, you need some tweaks to the VM configuration. While we are trying to incorporate them in the VM creation process, for the moment you would have to configure them by hand. As "root" in the VM (use the sudo command), follow the next steps.

  • You need to allow the communication with the dhcp server in the IPv6 iptables. So, in /etc/sysconfig/ip6tables add the line in bold, then restart the ip6tables
[root@scipv6 scampana]# cat /etc/sysconfig/ip6tables
-A INPUT -p ipv6-icmp -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
-A INPUT -m state --state NEW -m udp -p udp --dport 7001 -j ACCEPT
-A INPUT -m state --state NEW -m udp -p udp --dport 546 --sport 547 -s fe80::/10 -d fe80::/10 -j ACCEPT
-A INPUT -j REJECT --reject-with icmp6-adm-prohibited
-A FORWARD -j REJECT --reject-with icmp6-adm-prohibited
[root@scipv6 scampana]# /etc/init.d/ip6tables restart
ip6tables: Flushing firewall rules:                        [  OK  ]
ip6tables: Setting chains to policy ACCEPT: filter         [  OK  ]
ip6tables: Unloading modules:                              [  OK  ]
ip6tables: Applying firewall rules:                        [  OK  ]

  • Create the file /etc/dhcp/dhclient.conf and declare the mac address. You can find the address in LANDB at CERN:
    • Go to http://network.cern.ch
    • Click on "Display Information" and under "Device Name" put the name of your VM.
    • Take the MAC address from the "Network Interface Card(s)" field.

[root@scipv6 scampana]# cat /etc/dhcp/dhclient.conf 
interface "eth0" {
    hardware ethernet 00:15:5D:FF:30:77;

  • Delete the file /var/lib/dhclient/dhclient6.leases which may contain a wrong identifier used on another attempt

  • In the file /etc/sysconfig/network-scripts/ifcfg-eth0 add the line in bold below

[root@scipv6 scampana]# cat /etc/sysconfig/network-scripts/ifcfg-eth0

  • Restart the network service

[root@scipv6 scampana]# /etc/init.d/network restart 
Shutting down interface eth0:                              [  OK  ]
Shutting down loopback interface:                       [  OK  ]
Bringing up loopback interface:                            [  OK  ]
Bringing up interface eth0:  
Determining IP information for eth0... done.        [  OK  ]

  • You should see your inet6 address now in the global scope

[root@scipv6 scampana]# ifconfig 
eth0      Link encap:Ethernet  HWaddr 00:15:5D:FF:30:77  
          inet addr:  Bcast:  Mask:
          inet6 addr: 2001:1458:201:14::100:5c4/64 Scope:Global
          inet6 addr: fe80::215:5dff:feff:3077/64 Scope:Link
Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r4 - 2013-10-31 - SimoneCampana
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    LCG All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2023 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback