Sponsored Content
Top Forums UNIX for Advanced & Expert Users Very Challenging Question! Need help bad! Post 12827 by wizard on Monday 7th of January 2002 09:49:38 PM
Old 01-07-2002
Short answer:

The plumb argument to the ifconfig command is for dynamically activating a network interface without rebooting the system.

Long answer:

If you are configuring a network interface for the first time, you would first physically add the NIC to the machine and perform a reconfiguration boot. You would then add an IP/interface name in /etc/inet/hosts, and create a
/etc/hostname.<interface istance> file with the interface name in it. <interface names> above is built from the interface type and the instance number of that type.

For example:

On Sun Ultra boxes, the 10/100 interfaces are of type hme. If you are adding the first interface the file would be /etc/hostname.hme0. If you wanted the interface name to be myhostname, you would put the word myhostname in /etc/hostname.hme0 along with a corresponding IP/interface name entry in /etc/inet/hosts. You would then reboot to add the interface.

If you wanted to configure an interface without rebooting the machine (you would still have to add the NIC and perform a reconfiguration boot first), you can use

ifconfig hme0 plumb

(hme0 should be replaced with the proper interface name).
This will activate the interface and allow you to configure the IP, netmask, broadcast, etc. using ifconfig.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

bad substitution problem (easy question)

hi, what i want to do is to convert all the txt file under my directory to the properties file using the native2ascii command. however, when i run my script, i got bad substitution error. what's wrong with my script ? pls help. thanks #!/bin/sh curDIR=`pwd` oldExt='txt'... (10 Replies)
Discussion started by: champion
10 Replies

2. UNIX for Dummies Questions & Answers

A Challenging situation for the MODERATORS

Well, I hope this way you will respond to my inquiries. I have 4 unix servers,with static ips (though i dont think this is an issue)....i can telnet and rlogin from one to the other....if i FTP from on et othe other and try to execute : cd /user return /user : no such file or... (1 Reply)
Discussion started by: BAM
1 Replies

3. Cybersecurity

help with discovering bad passwords question

Is there of a scheme for discovering badly chosen user passwords from a Unix password file? Im not learning anything bad or trying to hack,this a question that was given to me in an information security seminar. Would password cracker be a correct answer? (1 Reply)
Discussion started by: jodders
1 Replies

4. Shell Programming and Scripting

Challenging Compare and validate question -- plus speed.

I have a tab delimited HUGE file (13 million records) with Detail, Metadata and Summary records. Sample File looks like this M BESTWESTERN 4 ACTIVITY_CNT_L12 A 3 M AIRTRAN 4 ACTIVITY_CNT_L12 A 3 D BESTWESTERN FIRSTNAME LASTNAME 209 N SANBORN AVE D BESTWESTERN FIRSTNAME LASTNAME 6997... (25 Replies)
Discussion started by: madhunk
25 Replies

5. Shell Programming and Scripting

Challenging!! Help needed

Hi, I have a script xyz.ksh which accpets two parameters the format of first one is :X_TABLENAME_Y and second one is a digit. I can extract a table name from that parameter and store it in a variable var_tblnm, so if i pass a parameter X_TABLE1_Y the value in var_tblenm is "TABLE1" now i have... (1 Reply)
Discussion started by: hcdiss
1 Replies

6. Shell Programming and Scripting

Very Challenging Problem. Please read fully.

Hi, This is the Third thread i'm putting here for the same problem. :( Actually, i'm trying a script like this.. but its taking a long time.. about 3 days to complete fully.. #!/bin/ksh if then exit 1 fi while read i do while read j do field7=`echo $j|cut -d "|"... (12 Replies)
Discussion started by: RRVARMA
12 Replies

7. Shell Programming and Scripting

Need help with this challenging code....

Hello All, I am new to this forum, and the reason I came here is to seek solution from the experts. I have written following wrapper script, it was running fine from past couple of months, until last week. When one of the function in the script which suppose to login through ssh to the... (2 Replies)
Discussion started by: tajdar
2 Replies

8. UNIX for Dummies Questions & Answers

Question/review my script: removing bad chars from filenames

The task: remove undesirable characters from filenames. Restrictions: Must use basic RE, base utilities (non-GNU) and /bin/sh (ash). No ksh, zsh, perl, etc. Below is what I've come up with. It seems to work OK but I'm open to shorter, more efficient alternatives. Inside the square... (4 Replies)
Discussion started by: uiop44
4 Replies

9. Shell Programming and Scripting

Why I get bad bad substitution when using eval?

Why I get bad replace when using eval? $ map0=( "0" "0000" "0") $ i=0 $ eval echo \${map$i} 0000 $ a=`eval echo \${map$i}` !!!error happens!!! bash: ${map$i}: bad substitution How to resolve it ? Thanks! (5 Replies)
Discussion started by: 915086731
5 Replies

10. Shell Programming and Scripting

Challenging scenario

Hi, My input file contains 1,2 2,4 3,6 4,9 9,10 My expected output is 1,10 2,10 3,6 4,1 9,10 (6 Replies)
Discussion started by: pandeesh
6 Replies
MAILPARSE_RFC822_PARSE_ADDRESSES(3)					 1				       MAILPARSE_RFC822_PARSE_ADDRESSES(3)

mailparse_rfc822_parse_addresses - Parse RFC 822 compliant addresses

SYNOPSIS
array mailparse_rfc822_parse_addresses (string $addresses) DESCRIPTION
Parses a RFC 822 compliant recipient list, such as that found in the To: header. PARAMETERS
o $addresses - A string containing addresses, like in: Wez Furlong <wez@example.com>, doe@example.com Note This string must not include the header name. RETURN VALUES
Returns an array of associative arrays with the following keys for each recipient: +---------+---------------------------------------------------+ | | | |display | | | | | | | The recipient name, for display purpose. If this | | | part is not set for a recipient, this key will | | | hold the same value as address. | | | | | | | |address | | | | | | | The email address | | | | | | | |is_group | | | | | | | | | | TRUE if the recipient is a newsgroup, FALSE oth- | | | erwise. | | | | +---------+---------------------------------------------------+ EXAMPLES
Example #1 mailparse_rfc822_parse_addresses(3) example <?php $to = 'Wez Furlong <wez@example.com>, doe@example.com'; var_dump(mailparse_rfc822_parse_addresses($to)); ?> The above example will output: array(2) { [0]=> array(3) { ["display"]=> string(11) "Wez Furlong" ["address"]=> string(15) "wez@example.com" ["is_group"]=> bool(false) } [1]=> array(3) { ["display"]=> string(15) "doe@example.com" ["address"]=> string(15) "doe@example.com" ["is_group"]=> bool(false) } } PHP Documentation Group MAILPARSE_RFC822_PARSE_ADDRESSES(3)
All times are GMT -4. The time now is 09:29 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy