LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 06-08-2013, 04:18 AM   #1
Huamin
Member
 
Registered: May 2011
Posts: 562

Rep: Reputation: 12
Configure IP for net1


Hi,
In Oracle Solaris 11, I set up one static IP for net0 like

root@SOL11I:/home/huamin# ipadm show-addr
ADDROBJ TYPE STATE ADDR
lo0/v4 static ok 127.0.0.1/8
net0/acme static ok 192.168.168.20/24
lo0/v6 static ok ::1/128
root@SOL11I:/home/huamin#

can you please share the details to allocate the Dynamic IP which is from my ISP, to net1?

Many Thanks & Best Regards,
HuaMin
 
Old 06-08-2013, 04:48 AM   #2
LiNuXkOlOnIe
Member
 
Registered: Dec 2005
Location: North germany
Distribution: Linux Mint
Posts: 46

Rep: Reputation: 16
Dont get me wrong but i don't understand clearly what you mean.

Are you connected to your ISP with a router or what is your connection ?

If it is, you get the ip vs DHCP from the router if it is enabled on the router.

If you set up a static ip you have to do it in the router too i think. So the router knows this static ip
belongs to your oracle box.
 
Old 06-09-2013, 09:13 AM   #3
Huamin
Member
 
Registered: May 2011
Posts: 562

Original Poster
Rep: Reputation: 12
Within the same machine, when running Redhat, I am able to have 2 IPs like:
eth0 is static which is 192.168.168.20;
eth1 is having the allocated IP from ISP.

I do want to achieve the same like the above, within Solaris 11. How?
 
Old 06-09-2013, 06:18 PM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
On the Linux box, can you post the output of these commands:
Code:
ifconfig -a
dmesg | grep eth
?
 
Old 06-09-2013, 08:38 PM   #5
Huamin
Member
 
Registered: May 2011
Posts: 562

Original Poster
Rep: Reputation: 12
Thanks.
But what I need now, is to have one dynamic IP that is allocated from my ISP, for net1.
 
Old 06-10-2013, 12:57 AM   #6
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Please post the output of the commands I asked for as what you are asking for is unclear.
 
Old 06-10-2013, 01:35 AM   #7
Huamin
Member
 
Registered: May 2011
Posts: 562

Original Poster
Rep: Reputation: 12
Please note what I need is in Solaris.

Here are what you have requested.

Code:
root@SOL11I:/home/huamin# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
	inet 127.0.0.1 netmask ff000000 
net0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
	inet 192.168.168.20 netmask ffffff00 broadcast 192.168.168.255
	ether 8:0:27:4:7c:5e 
lo0: flags=2002000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv6,VIRTUAL> mtu 8252 index 1
	inet6 ::1/128 
net0: flags=20002000840<RUNNING,MULTICAST,IPv6> mtu 1500 index 2
	inet6 ::/0 
	ether 8:0:27:4:7c:5e 
root@SOL11I:/home/huamin# dmesg | grep eth
root@SOL11I:/home/huamin# 
root@SOL11I:/home/huamin#

Last edited by Huamin; 06-10-2013 at 03:18 AM.
 
Old 06-10-2013, 02:40 AM   #8
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
I understand you are looking for a Solaris answer but as you fail to clearly explain what exactly your want and why, please post these commands output when run on the Red Hat machine you use as a reference.
Please also use code tags around the CLI part of your postings to ease readability.
 
Old 06-10-2013, 03:17 AM   #9
Huamin
Member
 
Registered: May 2011
Posts: 562

Original Poster
Rep: Reputation: 12
Thanks. Here are what I've got from Redhat.

Code:
[root@localhost ~]# ifconfig -a
eth0      Link encap:Ethernet  HWaddr 08:00:27:4D:74:68
          inet addr:192.168.168.21  Bcast:192.168.168.255  Mask:255.255.255.0
          inet6 addr: fe80::a00:27ff:fe4d:7468/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:45 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:6553 (6.3 KiB)

eth1      Link encap:Ethernet  HWaddr 08:00:27:C4:03:D0
          inet addr:?.?.242.31  Bcast:?.?.255.255  Mask:255.255.240.0
          inet6 addr: fe80::a00:27ff:fec4:3d0/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:155 errors:0 dropped:0 overruns:0 frame:0
          TX packets:79 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:15400 (15.0 KiB)  TX bytes:10318 (10.0 KiB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:1477 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1477 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:3713980 (3.5 MiB)  TX bytes:3713980 (3.5 MiB)

[root@localhost ~]# dmesg | grep eth
e1000: eth0: e1000_probe: Intel(R) PRO/1000 Network Connection
e1000: eth1: e1000_probe: Intel(R) PRO/1000 Network Connection
e1000: eth0: e1000_watchdog_task: NIC Link is Up 1000 Mbps Full Duplex, Flow Control: None
ADDRCONF(NETDEV_UP): eth0: link is not ready
ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
e1000: eth1: e1000_watchdog_task: NIC Link is Up 1000 Mbps Full Duplex, Flow Control: None
ADDRCONF(NETDEV_UP): eth1: link is not ready
ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
eth0: no IPv6 routers present
eth1: no IPv6 routers present
[root@localhost ~]#
 
Old 06-11-2013, 12:42 AM   #10
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Ok, so you have two NICs.

Assuming "netadm list" shows
Code:
ncp         DefaultFixed  enabled
You shouldbe able to set the net1 interface like this:

Code:
ipadm create-addr -T dhcp net1/dhaddr
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
configure script sends bad switches to daughter configure scripts Wells Linux - Software 7 10-10-2008 03:38 PM
dpkg-buildpackage configure: error: can only configure for one host and one target at donnied Debian 0 05-26-2008 07:08 PM
./configure fails with: libz... configure: error: not found. erpe Linux - Software 17 10-11-2006 05:56 PM
configure: error: when trying to install / configure new software ? met tomfer007 Linux - Software 1 07-25-2004 03:52 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 12:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration