Sponsored Content
Operating Systems Solaris ifconfig - making netmask & broadcast address permanent? Post 302303280 by badoshi on Thursday 2nd of April 2009 09:29:06 AM
Old 04-02-2009
many thanks - it turns out the stuff i blanked out was infact wrong. I was using the ipaddress, when it should have been the network address. doh!

all sorted now!
 

10 More Discussions You Might Find Interesting

1. IP Networking

broadcast address

What is the significance of the broadcast address? (1 Reply)
Discussion started by: 98_1LE
1 Replies

2. UNIX for Dummies Questions & Answers

network address and broadcast address?

say I have a IP address which is 10.0.0.12, and subnet mask is 255.255.255.240, what is the network address and what is the broadcast address which host lives on? And could you explain how to get the answer? thanx in advance! (7 Replies)
Discussion started by: pnxi
7 Replies

3. Solaris

bge card and broadcast address

I have a bge1 card and a bge0 card, i want the broadcast addresses to match, ifconfig shows this lo0: flags=1000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4> mtu 8232 index 1 inet 127.0.0.1 netmask ff000000 bge0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2 ... (1 Reply)
Discussion started by: csaunders
1 Replies

4. Shell Programming and Scripting

making the changes permanent in a file

Hi Friends. I have a file called install.data which has fields like : XXXXX ACVCGFFTFY UAHIUH OI CONNECTION=tape/11/ LOCATAION=08-90-89 SIZE=90 I had to change the values of some of these variables. So i did : grep "SIZE" instal.data | sed 's/*/00/' ...this is working fine on command... (4 Replies)
Discussion started by: vijaya2006
4 Replies

5. UNIX for Dummies Questions & Answers

Making an alias permanent

Hi mates, I want to make an alias permanent for a KShell, does someone knows how to do that? Thanks! (4 Replies)
Discussion started by: agasamapetilon
4 Replies

6. Shell Programming and Scripting

network and broadcast address

Hi Suppose You have two computers. One named kenny which has an IP address of 192.168.0.7. kenny lives on a subnet with a subnet mask of 255.255.255.240. The second computer is called zathras, which has an IP address of 192.168.0.17, zathras lives on a network with the same subnet mask. i)... (4 Replies)
Discussion started by: scofiled83
4 Replies

7. Shell Programming and Scripting

how to calculate netwrk from IP address and netmask using Bitwise AND in shell script

Hi, I am having two variables IP="10.150.12.1" netmask="255.255.255.0" To get network number, I know that a bitwise & will help. networkno=IP & netmask My code is #!/usr/bin/ksh ip="10.150.12.1" netmask="255.255.255.0" networkno="$ip" & "$netmask" echo $networkno I am... (7 Replies)
Discussion started by: chaitanyapn
7 Replies

8. Solaris

Process to make changed MAC address permanent

Hi If suppose there is a MAC address of NIC port. I have change the MAC address through following command # ifconfig hme0 ether a:0:30:f0.ad:51 The change MAC address will be there till reboot. Now I would like to know how to make the change MAC address permanent. I believe that... (1 Reply)
Discussion started by: amity
1 Replies

9. Shell Programming and Scripting

Shell script to give broadcast and network address

Hello, I am running a post script in autoyast where I am trying to set the broadcast and network address. I have the ip address and netmask already (reading from a file).. I saw the post from fpmurphy but it is using ksh which isn't an option in autoyast. Thanks in advance! (3 Replies)
Discussion started by: bloodclot
3 Replies

10. Solaris

how to make IP address permanent.

Greetings, I am using solaris10 x86 OS. I configured IP address using the command. >ifconfig e1000g0 plumb >ifconfig e1000g0 200.200.0.1 up How to make this configured IP as permanent.. to solaris os. (2 Replies)
Discussion started by: bhargav90
2 Replies
Interface::Simple(3pm)					User Contributed Perl Documentation				    Interface::Simple(3pm)

NAME
IO::Interface::Simple - Perl extension for access to network card configuration information SYNOPSIS
use IO::Interface::Simple; my $if1 = IO::Interface::Simple->new('eth0'); my $if2 = IO::Interface::Simple->new_from_address('127.0.0.1'); my $if3 = IO::Interface::Simple->new_from_index(1); my @interfaces = IO::Interface::Simple->interfaces; for my $if (@interfaces) { print "interface = $if "; print "addr = ",$if->address," ", "broadcast = ",$if->broadcast," ", "netmask = ",$if->netmask," ", "dstaddr = ",$if->dstaddr," ", "hwaddr = ",$if->hwaddr," ", "mtu = ",$if->mtu," ", "metric = ",$if->metric," ", "index = ",$if->index," "; print "is running " if $if->is_running; print "is broadcast " if $if->is_broadcast; print "is p-to-p " if $if->is_pt2pt; print "is loopback " if $if->is_loopback; print "is promiscuous " if $if->is_promiscuous; print "is multicast " if $if->is_multicast; print "is notrailers " if $if->is_notrailers; print "is noarp " if $if->is_noarp; } DESCRIPTION
IO::Interface::Simple allows you to interrogate and change network interfaces. It has overlapping functionality with Net::Interface, but might compile and run on more platforms. Class Methods $interface = IO::Interface::Simple->new('eth0') Given an interface name, new() creates an interface object. @iflist = IO::Interface::Simple->interfaces; Returns a list of active interface objects. $interface = IO::Interface::Simple->new_from_address('192.168.0.1') Returns the interface object corresponding to the given address. $interface = IO::Interface::Simple->new_from_index(2) Returns the interface object corresponding to the given numeric index. This is only supported on BSD-ish platforms. Object Methods $name = $interface->name Get the name of the interface. The interface object is also overloaded so that if you use it in a string context it is the same as calling name(). $index = $interface->index Get the index of the interface. This is only supported on BSD-like platforms. $addr = $interface->address([$newaddr]) Get or set the interface's address. $addr = $interface->broadcast([$newaddr]) Get or set the interface's broadcast address. $addr = $interface->netmask([$newmask]) Get or set the interface's netmask. $addr = $interface->hwaddr([$newaddr]) Get or set the interface's hardware address. $addr = $interface->mtu([$newmtu]) Get or set the interface's MTU. $addr = $interface->metric([$newmetric]) Get or set the interface's metric. $flags = $interface->flags([$newflags]) Get or set the interface's flags. These can be ANDed with the IFF constants exported by IO::Interface or Net::Interface in order to interrogate the state and capabilities of the interface. However, it is probably more convenient to use the broken-out methods listed below. $flag = $interface->is_running([$newflag]) $flag = $interface->is_broadcast([$newflag]) $flag = $interface->is_pt2pt([$newflag]) $flag = $interface->is_loopback([$newflag]) $flag = $interface->is_promiscuous([$newflag]) $flag = $interface->is_multicast([$newflag]) $flag = $interface->is_notrailers([$newflag]) $flag = $interface->is_noarp([$newflag]) Get or set the corresponding configuration parameters. Note that the operating system may not let you set some of these. AUTHOR
Lincoln Stein <lstein@cshl.org> This module is distributed under the same license as Perl itself. SEE ALSO
perl, IO::Socket, IO::Multicast), IO::Interface, Net::Interface perl v5.14.2 2007-01-22 Interface::Simple(3pm)
All times are GMT -4. The time now is 11:08 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy