Sponsored Content
Special Forums IP Networking dhcp and static ip conflicts. Post 302253616 by ts97783 on Saturday 1st of November 2008 10:08:23 AM
Old 11-01-2008
I eventually go this sorted.

I had to disable physical:nwam and enable physical:deault under SMF then create a /etc/hostname.rum0 file

Upon reboot elxl0 remembered it's IP address and rum0 was assigned an IP from my wireless router. Althoguh my router reported conected under dladm, I was getting "page not found" when opening a browser.

I had to find the DNS servers for my provider (googled them) then added them to

/etc/resolv.conf file, and add these 2 lines
nameserver (primary dns)
nameserver (secondary dns)

Then;

cp /etc/nsswitch.dns /etc/nsswitch.conf

After a reboot I had to manually connect to my wifi using dladm but it all works now.

I will try and get this working using nwam but I have a few things I want to try first. Will report back when I can!

Cheers
 

10 More Discussions You Might Find Interesting

1. HP-UX

HP-UX 10.xx Changing from static IP to DHCP

***Newbie alert*** What's the easiest way to accomplish this? An admin left our company and I have taken over his HP Workstation and moved it to a different location that is on a different IP segment. I have performed a number of google searches but the steps I have followed haven't worked. ... (1 Reply)
Discussion started by: Steelysteel
1 Replies

2. IP Networking

How to configure DHCP to Static IP

I am pretty new to this. My router was earlier configured to enable DHCP, thus my UNIX box is using the dhcp address, i.e. I have to do a ifconfig dhcp hme0 start. Since I am planning to use my NT as a web server, I needed to use the static IP address. How do I configure the unix box to use the... (5 Replies)
Discussion started by: lee30320
5 Replies

3. IP Networking

Switching from DHCP to Static IP

I am trying to write a set of scripts for my Ubuntu 810 Server to allow a user to change from DHCP to a user-supplied Static IP, Subnet, Gateway and DNS Servers. So far I have the following, where $USERCHOICE is a user-entered value in each case: ifconfig eth0 down && ifconfig eth0 $USERCHOICE... (1 Reply)
Discussion started by: cleanden
1 Replies

4. Red Hat

How to know whether my system is using DHCP or STATIC IP

Hi, I am using RHEL 5.1 and i would like to know, how to find the whether my system is using DHCP or STATIC IP with out looking at /etc/sysconfig/network-scripts/ifconfig-eth0 configuration file. Regards, Venkat (3 Replies)
Discussion started by: venkat55
3 Replies

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

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

7. Red Hat

Purpose of Static IP address through DHCP

Hi All, Could you please explain the purpose of assigning the static IP by using the DHCP Concept. Like by using the clients MAC address we assign the static IP Address. Waiting for your reply. Thanks in Advance. (6 Replies)
Discussion started by: Sharath Kumar
6 Replies

8. HP-UX

[Solved] Static or DHCP IP in HP-UX

Hi, I can find the IP details whether it is Static or dynamic in Linux machine from the location /etc/sysconfig/network-scripts/ifconfig-eth0 configuration file. Can someone suggest a location to find the same in HP UX machines? -Vivek (2 Replies)
Discussion started by: vkk
2 Replies

9. IP Networking

Node switched itself from static to DHCP on reboot issue

I'm trying to figure out what circumstances would cause an Open Solaris 11.2 host to switch itself from a static to a DHCP ip address upon reboot. This has only happened once but is a cause for some concern as this machine will be part of a web server pool. Nothing has changed on the LAN that... (2 Replies)
Discussion started by: SmokeyJoe
2 Replies

10. Solaris

Solaris static IP changed (non DHCP)

We have 2 solaris 10 t5240 servers with static IP addresses on nxge0 I/F which were rebooted a few days back with a known good config that has been in place for years (for /etc/hosts, /etc/hostname.nxge0, /etc/netmasks, etc) They are not using dhcp. About the same time today, both of their... (7 Replies)
Discussion started by: hdatontodo
7 Replies
nwamd(1M)						  System Administration Commands						 nwamd(1M)

NAME
nwamd - network auto-magic daemon SYNOPSIS
/lib/inet/nwamd DESCRIPTION
nwamd is a system daemon to manage network interfaces. This daemon is started automatically and should not be invoked directly. It does not constitute a programming interface. Operation Whether this daemon is enabled or not depends on your installation medium. To check from within the GNOME desktop environment, double click on the "Network Manager" icon to open the "Connection Properties" window. If "Configure network automatically" is checked, then auto-magic mode is enabled. To check from the command line, enter the following: % svcs svc:/network/physical Two instances will be listed, one online and the other disabled. If the "nwam" instance is online, then this daemon is running. To switch between manual and auto-magic mode, you can use the Network Monitor applet available within the GNOME desktop environment. You can also switch manually from the command line by entering: % svcadm disable svc:/network/physical:default % svcadm enable svc:/network/physical:nwam To go from auto-magic mode to manual mode: % svcadm disable svc:/network/physical:nwam % svcadm enable svc:/network/physical:default When switching modes like this, keep in mind that all network interfaces will be brought down then back up. Therefore, if a different IP address is configured in this process, existing applications and sessions might be disrupted. There is a limitation that only one link is active at a time in auto-magic mode. This mode is not recommended for machines that use more than one link at a time. For machines with wired and wireless links, wired link are preferred by default, although this can be adjusted from the GNOME NWAM Manager menu (right-click on the icon), or from the command line, by editing the plain text file /etc/nwam/llp. For the latter (hand-editing) procedure, the first instance of a link in /etc/nwam/llp sets the priority of that link. Subsequent instances of that link set parameters associated with the interface on that link. The /etc/nwam/llp interface is volatile and might change in a future release. Static IP Addresses A static IP address can be configured by changing the line in the /etc/nwam/llp file that contains an interface name and the name of the method for obtaining an IP address. It might look like: nge0 dhcp Change this line to one that looks like: nge0 static I1.I2.I3.I4/P ...where the I's are the digits of the IPv4 address and the P is an optional prefix. If the prefix is not provided, it is derived, using classful assumptions. Configuring IPv6 IPv6 is configured by default on a link. It can also be explicitly added in the /etc/nwam/llp file by providing a line that contains an interface name and the string ipv6. It might look like: nge0 ipv6 If IPv6 should not be plumbed on a given link, a noipv6 entry should be created in the /etc/nwam/llp file for that link. It might look like: nge0 noipv6 An optional static IPv6 address can be provided on the same line, immediately after the ipv6 token. Whether you provide a static address or not, IPv6 will use DHCPv6 or stateless address configuration, as directed by the local network configuration. PROFILES All interfaces listed in this section are volatile and may change in a future release. They are documented here so that those wishing to experiment with this may do so. Profiles are a mechanism for making multiple related changes to the system configuration after IP service is available. There is no direct support for the profiles yet, but a "roll your own" mechanism is provided for now. Once an interface is brought up and an IP address is configured for it, the daemon looks for the file /etc/nwam/ulp/check-conditions. If this file exists and is executable, it is run. This should print a single line of output, which is the name of the profile that the user wishes to activate based on the current conditions. If such a line is read successfully (foo in this example), then /etc/nwam/ulp/foo/bringup is executed. Likewise, when the interface gets torn down for whatever reason, /etc/nwam/ulp/foo/teardown is executed. The "bringup" and "teardown" scripts are invoked via pfexec(1) with default basic privileges. Samples for each of these scripts can be found at: o http://opensolaris.org/os/project/nwam/prototype/check-conditions o http://opensolaris.org/os/project/nwam/prototype/bringup o http://opensolaris.org/os/project/nwam/prototype/teardown Wireless If no wired link is available, a scan for wireless LANs is done, and the resulting list offered via a GUI popup window prompts the console user to select a preference. If a successful connection is made, the WLAN in question is stored in the plain text file /etc/nwam/known_wifi_nets and the daemon may connect to any WLAN in that list without prompting the user again. If a user wishes to add other preferences or revoke existing ones, he can do so by bringing up the NWAM Manager menu with right-click on the icon, and then select- ing "Manage Favorite Wireless Networks...". A user can also edit the known_wifi_nets file directly. This interface is volatile and might change in a future release. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWcsr | +-----------------------------+-----------------------------+ |Interface Stability |Volatile | +-----------------------------+-----------------------------+ SEE ALSO
svcs(1), svcadm(1M), attributes(5), smf(5) See also nwam-manager(1M), available in the JDS/GNOME man page collection. NOTES
The networking service is managed by the service management facility, smf(5), under the service identifier: svc:/network/physical Administrative actions on this service, such as enabling, disabling, or requesting restart, can be performed using svcadm(1M). The ser- vice's status can be queried using the svcs(1) command. SunOS 5.11 24 Nov 2008 nwamd(1M)
All times are GMT -4. The time now is 07:31 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy