Sponsored Content
Full Discussion: Have a static IP for net0
Operating Systems Solaris Have a static IP for net0 Post 302816897 by HuaMin on Tuesday 4th of June 2013 09:50:18 PM
Old 06-04-2013
Thanks. Here are what I've got (after I've "su" to root)

Code:
root@SOL11I:/home/huamin# netadm enable -p ncp defaultfixed
Enabling ncp 'DefaultFixed'
root@SOL11I:/home/huamin# ipadm delete-ip net0
ipadm: cannot delete interface net0: No such interface
root@SOL11I:/home/huamin# ipadm create-ip net0
root@SOL11I:/home/huamin# ipadm create-addr -T static -a local=192.168.168.20/24 net0/v4
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 4
    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 4
    inet6 ::/0 
    ether 8:0:27:4:7c:5e 
root@SOL11I:/home/huamin#

why can't I go to Internet now?
Many Thanks & Best Regards,
HuaMin
 

9 More Discussions You Might Find Interesting

1. 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

2. Programming

Static

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

3. 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

4. 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

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. 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

7. 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

8. 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

9. 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
NTB(4)							   BSD Kernel Interfaces Manual 						    NTB(4)

NAME
ntb, ntb_hw, if_ntb -- Intel(R) Non-Transparent Bridge driver SYNOPSIS
To compile this driver into your kernel, place the following lines in your kernel configuration file: device ntb_hw device if_ntb Or, to load the driver as a module at boot, place the following line in loader.conf(5): if_ntb_load="YES" DESCRIPTION
The ntb driver provides support for the Non-Transparent Bridge (NTB) in the Intel S1200, Xeon E3 and Xeon E5 processor families. The NTB allows you to connect two computer systems using a PCI-e link if they have the correct equipment and connectors. CONFIGURATION
The NTB memory windows need to be configured by the BIOS. If your BIOS allows you to set their size, you should set the size of both memory windows to 1 MiB. This needs to be done on both systems. Each system needs to have a different IP address assigned. The MAC address is randomly generated. Also for maximum performance, the MTU should be set to 16 kiB. This can be done by adding the line below to rc.conf(5): ifconfig_ntb0="inet 192.168.1.10 netmask 255.255.255.0 mtu 16384" And on the second system : ifconfig_ntb0="inet 192.168.1.11 netmask 255.255.255.0 mtu 16384" If you are using the UDP protocol, you may want to increase the net.inet.udp.maxdgram sysctl(8) variable. SEE ALSO
rc.conf(5), sysctl(8) AUTHORS
The ntb driver was developed by Intel and originally written by Carl Delsey <carl@FreeBSD.org>. BUGS
If the driver is unloaded, it cannot be reloaded without a system reboot. The network support is limited. It isn't fully configurable yet. It also isn't integrated into netgraph(4) or bpf(4). NTB to Root Port mode is not yet supported. There is no way to protect your system from malicious behavior on the other system once the link is brought up. Anyone with root or kernel access on the other system can read or write to any location on your system. In other words, only connect two systems that completely trust each other. BSD
Apr 11, 2013 BSD
All times are GMT -4. The time now is 10:39 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy