Have a static IP for net0


 
Thread Tools Search this Thread
Operating Systems Solaris Have a static IP for net0
# 15  
Old 06-06-2013
Well you cannot delete an interface that doesn't exist and you cannot create an interface that already exists, quite a logical behavior.

It would help if you follow precisely the steps that have been suggested.
These 2 Users Gave Thanks to jlliagre For This Post:
# 16  
Old 06-06-2013
Where are the steps in details? I did each action one by one. How to correct the steps I've performed there? Thanks.
# 17  
Old 06-06-2013
See post #4
Quote:
I did each action one by one.
I'm afraid no. Double check what you did.

Last edited by DukeNuke2; 06-06-2013 at 07:44 PM..
This User Gave Thanks to jlliagre For This Post:
# 18  
Old 06-06-2013
Hi,
Four days ago, I got these steps from Bartus

Code:
netadm enable -p ncp defaultfixed
ipadm delete-ip net0
ipadm create-ip net0
ipadm create-addr -T static -a local=192.168.168.20/24 net0/v4

I've already "su" to root and can get these below

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=1004843<UP,BROADCAST,RUNNING,MULTICAST,DHCP,IPv4> mtu 1500 index 2
    inet 0.0.0.0 netmask ff000000 
    ether 8:0:27:4:7c:5e 
net1: flags=1004843<UP,BROADCAST,RUNNING,MULTICAST,DHCP,IPv4> mtu 1500 index 3
    inet ?.?.241.112 netmask fffff000 broadcast ?.?.255.255
    ether 8:0:27:ad:2:a7 
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 
    ether 8:0:27:4:7c:5e 
net1: flags=20002004841<UP,RUNNING,MULTICAST,DHCP,IPv6> mtu 1500 index 3
    inet6 fe80::a00:27ff:fead:2a7/10 
    ether 8:0:27:ad:2:a7

Here I follow the steps from Bartus.
Code:
root@SOL11I:/home/huamin# netadm enable -p ncp defaultfixed
Enabling ncp 'DefaultFixed'

Can you please advise why I cannot delete net0 below?

Code:
root@SOL11I:/home/huamin# ipadm delete-ip net0
ipadm: cannot delete interface net0: No such interface
root@SOL11I:/home/huamin#

Many Thanks & Best Regards,
HuaMin

Last edited by HuaMin; 06-07-2013 at 12:12 AM..
# 19  
Old 06-07-2013
That's because it's not created via create-ip command Smilie

Why don't you read about it a bit under manual configuration in article below :
How to Get Started Configuring Your Network in Oracle Solaris 11
This User Gave Thanks to Peasant For This Post:
# 20  
Old 06-07-2013
Exactly as Peasant said.
Probably you have delete it meanwhile and did not create again.
Use command
Code:
# ipadm

or
Code:
# dladm

to see current status of all your interfaces.
And make some exercises with this command with different arguments. You can always use man pages for those commands.
Code:
# man ipadm


Last edited by GP81; 06-07-2013 at 04:08 AM..
# 21  
Old 06-07-2013
Sorry Peasant. From the article, I don't find out the way to assign one static IP to net0.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Programming

Even the Static cURL Library Isn't Static

I'm writing a program which uses curl to be run on Linux PCs which will be used by a number of different users. I cannot make the users all install curl on their individual machines, so I have tried to link curl in statically, rather than using libcurl.so. I downloaded the source and created a... (8 Replies)
Discussion started by: BrandonShw
8 Replies

2. UNIX for Dummies Questions & Answers

How to tell if i am using DHCP or Static

Hey guys , YEs this is probably silly for most but i am new to this forum and solaris . i am curious to know if the ip address we have for our solaris server is static or dhcp . how can i tell ? will ifconfig -a tell me this ? or other commands? Thanks in advance (1 Reply)
Discussion started by: xdrivex
1 Replies

3. Linux

Could static library include static library?

I have some static library(libxxx.a libyyy.a). And I want to generate my library(libzzz.a), libzzz.a will use libxxx.a and libyyy.a I wan't my application only use libzzz.a, (means libzzz.a had include libxxx.a, libyyy.a), how can I do that? Thank you. example: I have zzz.c. I do ... (4 Replies)
Discussion started by: freemagic
4 Replies

4. IP Networking

I need HELP to Set up Coyote Linux router with 1 static IP & 64 internal static IP

hello, i need help on setting my coyote linux, i've working on this for last 5 days, can't get it to work. I've been posting this message to coyote forum, and other linux forum, but haven't get any answer yet. Hope someone here can help me...... please see my attached picture first. ... (0 Replies)
Discussion started by: dlwoaud
0 Replies

5. Shell Programming and Scripting

How to static the average value

Hi all, Sorry I make a mistake,the title should be "How to statistic the average value " I do five times about "mv 123 to 456" and do five times about "mv 456 to 123" As we know,"time" can get the real usr sys value, I want to get the average real,usr,sys of "mv 123 to 456" and "mv 456 to... (4 Replies)
Discussion started by: yanglei_fage
4 Replies

6. UNIX for Dummies Questions & Answers

Static Route

Hi, Request you to please tell me the command or the process to add the static route in redhat linux. Thanks in Advance. Regards Arun (2 Replies)
Discussion started by: Arun.Kakarla
2 Replies

7. IP Networking

static route ?

Hi, I have a machine that sits on 10.2 network. I need to ssh from this to another box that is on both 10.125 & 10.140 VLANs what should I need to do? Thanks! (3 Replies)
Discussion started by: chaandana
3 Replies

8. Programming

Static

What does this command exactly do cc -static example.c (6 Replies)
Discussion started by: wojtyla
6 Replies

9. IP Networking

Static IP

Is it possible, and if so, how can I assign a static IP address to my RedHat 8.0 machine. I am using a Linksys router/switch with DHCP enabled. I have a small linux/windows2000 LAN at home. I want to assign a static IP so that I can setup port forwarding to my linux machine so that I can ssh into... (7 Replies)
Discussion started by: google
7 Replies
Login or Register to Ask a Question