Have a static IP for net0

Discussions about using Solaris guests in VirtualBox.
Post Reply
HuaMin
Posts: 239
Joined: 17. Jan 2012, 07:01
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: Oracle linux

Have a static IP for net0

Post by HuaMin »

Hi,
Here is what I get within Solaris.

huamin@SOL11I:~$ ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
net0: flags=1004843<UP,BROADCAST,RUNNING,MULTICAST,DHCP,IPv4> mtu 1500 index 2
inet 0.0.0.0 netmask ff000000
net1: flags=1004843<UP,BROADCAST,RUNNING,MULTICAST,DHCP,IPv4> mtu 1500 index 3
inet ?.?.240.138 netmask fffff000 broadcast ?.?.255.255
lo0: flags=2002000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv6,VIRTUAL> mtu 8252 index 1
inet6 ::1/128
net0: flags=20002004841<UP,RUNNING,MULTICAST,DHCP,IPv6> mtu 1500 index 2
inet6 fe80::a00:27ff:fe04:7c5e/10
net1: flags=20002004841<UP,RUNNING,MULTICAST,DHCP,IPv6> mtu 1500 index 3
inet6 fe80::a00:27ff:fead:2a7/10
huamin@SOL11I:~$

As it is run within one Virtualbox, inside which, Adapter 1 is an "Internal network", Adapter 2 a "Bridged adapter". How to set up one static IP, like 192.168.168.20 for net0 of Solaris?

Many Thanks & Best Regards,
HuaMin
noteirak
Site Moderator
Posts: 5229
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

Re: Have a static IP for net0

Post by noteirak »

Guest configuration is out of scope of this forum, and your question is very common and surely already answered on Google many times.
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
Post Reply