Assign IPv4 and IPV6 static addresses

Hello all,

How do I assign IPv4 and IPv6 static addresses permanently in OpenSUSE 11.2?

Currently I am only able to assign either IPv4 or IPv6 static address not both. I cannot find even the interfaces file(/etc/sysconfig/network/interfaces).

Please guide me…

Go to yast2


SUSE:yast2

Network Divices → Network Settings

Global Options:
SET: Traditional Method with ifup
UnSet: Change Default Route via DHCP

Overview:
Add

Set: Statically assigned Ip Address

IP Address: 190.210.12.150
Subnet mask: 255.255.255.0
Hostname: your name?

Routing:
Default IPv4 Gateway:
put ip of your gateway: 192.168.0.1

Device
Select your device: eth0 or eth1

Go to /etc/resolv.conf

and add yours nameservers
nameserver 200.69.193.1
nameserver 200.69.193.2

rotfl!

Do you have to have a particular IPv6 address? Because you get an automatic IPv4 mapped into IPv6 address, see the output of ifconfig, the line starting with inet6 address. It has the IPv4 address embedded into it, if you take the time to decode the hex.

If not, it certainly possible to bind additional IPv6 addresses to the interface, but I’ve never had to so I couldn’t say without looking if YaST supports it. But it certainly can be done from the CLI, using the ip program.