Sponsored Content
Special Forums IP Networking Setting primary ip address with ifconfig Post 302087034 by pmichner on Tuesday 29th of August 2006 12:08:30 PM
Old 08-29-2006
Solved

I solved my own problem. (pretty rare, huh? Smilie ) Since I didn't know the correct usage of the primary option with ifconfig, I went onto the box through the currently primary interface which I wanted to be the secondary and did an ifconfig interface down. Then I went in on the secondary interface which I wanted to be the primary and brought the other back up. Seems logical that if there are two interfaces and one goes down, the remaining one becomes the primary. Hope this helps someone else in the world Smilie
 

10 More Discussions You Might Find Interesting

1. Solaris

ifconfig bad address

hi all iam trying to set my eri0 interface but with little luck . when i set the ip using ipconfig i always get "bad adress".. moreover when i use ifconfig eri0 i can notice that the inet is 0.0.0.0 and the netmask 0 i am runnig solaris 9 on sparc . any helpis highly appreciated ... ... (2 Replies)
Discussion started by: ppass
2 Replies

2. Linux

setting primary dns

Hi, I am running Fedora 7. I seem to remember there being a command to determine the primary dns. Can anyone help me find out what it is? Thanks! (2 Replies)
Discussion started by: user23
2 Replies

3. IP Networking

ifconfig: ce401001: bad address

HI All, My interface card has failed.If i am giving the command to uplumb it i am getting an error. ce401001: flags=219040843<UP,BROADCAST,RUNNING,MULTICAST,DEPRECATED,IPv4,NOFAILOVER,FAILED,CoS> mtu 1500 index 3 inet 10.188.24.18 netmask ffffffc0 broadcast 10.188.24.63 # ifconfig... (2 Replies)
Discussion started by: sag71155
2 Replies

4. Shell Programming and Scripting

how grep the inet address for in ifconfig command

hi, i want to know how to grep inet address for below below is the output of ifconfig command /home/JA> ifconfig eth0 Link encap:Ethernet HWaddr 00:11:0A:5B:2E:E9 inet addr:161.239.203.18 Bcast:161.239.203.127 Mask:255.255.255.128 UP BROADCAST RUNNING... (3 Replies)
Discussion started by: mail2sant
3 Replies

5. Shell Programming and Scripting

how to grep only IP address of e1000g0 using ifconfig -a

Hello All, Can someone show me how to cat "only the IP address of e1000g0" using ifconfig -a. i am trying to grep only the ip address (xx.xx.xx.xx) from the bunch of all other things like, broadcast address, IPV4, UP........and so on. thanks (1 Reply)
Discussion started by: solaix14
1 Replies

6. Shell Programming and Scripting

script to get IP address from ifconfig

I'm a newbie to linux, so pleases forgive me! I would like to find a script that I could use to extract a dynamic ip from the ppp0 and set it as a variable to be used in IPTables basically, if ppp0 ip address is 10.10.10.20, I would like a script that would set a var to 10.10.10.0. of... (9 Replies)
Discussion started by: speedy3k
9 Replies

7. IP Networking

IP Address not found in ifconfig/netstat

I'm working on an AIX Unix LPAR (AIX 3.5 00C3C9904C00 as returned by uname -a) I can access this box using telnet, port 22 using adress IP A and B A=AA.AA.XX.XX and B=AA.AA.YYY.YYY I can confirm these 2 are the same space, I can see I can't find address B listed anywhere... so I wonder what... (1 Reply)
Discussion started by: Isax50
1 Replies

8. Solaris

ifconfig - making netmask & broadcast address permanent?

hi, I am trying to configure one of my interfaces, but after reboot - i lose the changes to the netmask & broadcast address. I have added an entry in /etc/netmasks, but it doesnt pick up the new settings. any ideas - much appreciated. before reboot: eri0:... (3 Replies)
Discussion started by: badoshi
3 Replies

9. Shell Programming and Scripting

extracting the ip address from ifconfig

Hi I am trying to create a script extracting the IP provided by ifconfig. I tried with grep + awk but I am returned more than I need. /sbin/ifconfig eth0 | grep "inet addr:" | awk '/inet addr:/ { print $2 }' and returns addr:10.15.1.64 How can I remove "addr:" string?... (9 Replies)
Discussion started by: manustone
9 Replies

10. Solaris

ifconfig primary & standby purpose

I have two ethernet interfaces nge0 and nge1. An IP assigned on nge0 is 10.10.10.1/24 and on nge1 is 20.20.20.1/24. I want to make nge0 as primary interface. My question here is, 1. Being nge0 as primary interface, if I ping to an IP 20.20.20.5, what will happen? 2. If the answer for the... (4 Replies)
Discussion started by: nthiruvenkatam
4 Replies
rdc.cf(4)							   File Formats 							 rdc.cf(4)

NAME
rdc.cf - Availability Suite Remote Mirror software configuration file DESCRIPTION
The rdc.cf is an optional configuration file that supplies the sndradm(1M) command with details of the volume sets to be operated on. Inrdc.cf, the volume sets and their host locations are defined in the following format: post pdevice pbitmap shost sdevice sbitmap protocol mode options The rdc.cf fields are: phost (primary host) Server on which the primary volume resides. pdevice (primary device) Primary volume partition to be copied. Specify only full path names (for example, /dev/rdsk/c0t1d0s2). pbitmap (primary bitmap) Volume partition in which the bitmap (scoreboard logs) of the primary partition is stored. Specify only full path names (for exam- ple, /dev/rdsk/c0t1d0s3). shost (secondary host) Server on which the secondary volume resides. sdevice (secondary device) Secondary volume partition. Specify only full path names (for example,/dev/rdsk/c0t1d0s4). sbitmap (secondary bitmap) Volume partition in which the bitmap (scoreboard logs) of the secondary file is stored. Specify only full path names (for example, /dev/rdsk/c0t1d0s5). protocol Network transfer protocol. Specify IP. mode Remote Mirror operating mode. Sync is the Remote Mirror mode where the I/O operation is not confirmed as complete until the remote volume has been updated. Async is the other Remote Mirror mode, in which the primary host I/O operation is confirmed as complete before updating the remote volume. options A consistency group name can be specified using the g character. A disk queue volume partition can be specified using the q character, using full path name only (/dev/rdsk/c0t1d0s5). Without the q character set will default to memory base queue. When running on a clustered system, a cluster resource group tag can be specified using the C character. These options have the following syntax: [g io_groupname] [q queue_volume][C ctag] Note - When running on a cluster configuration, the cluster resource group tag is appended to the Remote Mirror set by default. ATTRIBUTES
See attributes(5) for a description of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Architecture |x86 | +-----------------------------+-----------------------------+ |Availability |SUNWrdcu | +-----------------------------+-----------------------------+ |Interface Stability |Committed | +-----------------------------+-----------------------------+ SEE ALSO
sndradm(1M), sndrd(1M), attributes(5) SunOS 5.11 08 Jun 2007 rdc.cf(4)
All times are GMT -4. The time now is 09:42 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy