So, I have this script that makes a call to ifconfig to pull the interface information and report it. When I log on to the machine the script works just fine. But, if I'm on a remote machine and I make a call like this.
Code:
ssh user@server ./script.bash
I get an error saying that the IFCONFIG command is unavailable. No idea why.
Everything is being run as a user. Naturally, root ssh is disabled.
I have to cd into /sbin in order to use ifconfig to check out my network cards. This has only started to happen since I downloaded the last update from RedHat(The machine runs RedHat 8.0).
Does anyone know what happened?
More importantly, are there any sources that can help me with this... (3 Replies)
This will most likely be a real dumb question for a HP-UX admin, but here it goes anyhow.
lan0 - is up and configured
lan1 - is down, I want to bring it up.
lanconfig....ifconfig is there a difference?
My real question is, in solaris there is an /etc/hostname."?" file, is there a... (4 Replies)
I am trying to change an IP address on a machine running HPUX10
After I change it I can ping it from the outside but it completely locks the console. After a reboot it returns back to its previous IP. Any ideas??
Thanks
Brian (7 Replies)
why the ifconfig command is not working in my machine?
it says "-bash: ifconfig: command not found"
why its says that?
actually i m looking for "how can I know the Network Interface Card physical address?"
Requesting u all for help.
thanks (3 Replies)
hey,
I know that ifconfig on linux systems is identical to win ipconfig.
I wanted to know if there is a linux distribution (new or old) that uses the ipconfig command.
thanks alot :) (2 Replies)
Hi all,
I am getting some error messages during bootup
ifconfig :<hostname> bad address
and some more messages related to it.
I some how checked the /etc/hostanem.hme0 /etc/hosts file.
Entries in these files were proper.
If I am running the following command from root:
... (5 Replies)
Hi All,
I need some info on ifconfig.
ifconfig is available in Linux and Solaris. However the options available in Solaris is not there in Linux.
1. ifconfig -a == output is different in both OS. I am somewhat able to compare the output. But one thing I am not getting is after the flags... (2 Replies)
Unable to run the ifconfig in my home dir..
I did add adding /sbin and /usr/sbin in th PATH
But still unable to get that ..
Am using red hat linux
cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.3 (Tikanga) (3 Replies)
What would be the command to remove the IP address from an interface?
I want to remove the ip from this interface:
ce3: flags=1000803<UP,BROADCAST,MULTICAST,IPv4> mtu 1500 index 5
inet 155.216.13.74 netmask fffffff0 broadcast 155.216.13.79
ether 0:3:ba:da:a6:96 (3 Replies)
Discussion started by: Kjons76
3 Replies
LEARN ABOUT NETBSD
ifconfig.if
IFCONFIG.IF(5) BSD File Formats Manual IFCONFIG.IF(5)NAME
ifconfig.if -- interface-specific configuration files or variables
DESCRIPTION
The ifconfig.if files or variables contain information regarding the configuration of each network interface. ifconfig.if is processed by
/etc/rc.d/network at system boot time.
For each interface (nnX) that is to be configured, there should be either an ifconfig_nnX variable in rc.conf(5), or an /etc/ifconfig.nnX
file (such as the ifconfig_fxp0 variable or the /etc/ifconfig.fxp0 file for the fxp0 interface). Only characters allowed in sh(1) variables
names should be used for nnX (ascii(7) uppercase and lowercase letters, digits, and underscore).
The variable or file will get evaluated only if the interface exists on the system. Multiple lines can be placed in a variable or file, and
will be evaluated sequentially. In the case of a variable, semicolons may be used instead of newlines, as described in rc.conf(5).
<backslash><newline> sequences in files are ignored, so long logical lines may be made up of several shorter physical lines.
Normally, a line will be evaluated as command line arguments to ifconfig(8). ``ifconfig nnX'' will be prepended on evaluation. Arguments
with embedded shell metacharacters should be quoted in sh(1) style.
If the line is equal to ``dhcp'', dhcpcd(8) will be started for the interface. However, it is instead recommended that dhcpcd is set to true
in rc.conf(5) and any per interface configuration or restriction is done in dhcpcd.conf(5).
If a line is empty, or starts with '#', the line will be ignored as comment.
If a line starts with '!', the rest of line will get evaluated as shell script fragment. Shell variables declared in /etc/rc.d/network are
accessible but may not be modified. The most useful variable is $int, as it will be bound to the interface being configured with the file.
For example, the following illustrates static interface configuration:
# IPv4, with an alias
inet 10.0.1.12 netmask 255.255.255.0 media 100baseTX
inet 10.0.1.13 netmask 255.255.255.255 alias
# let us have IPv6 address on this interface
inet6 2001:db8::1 prefixlen 64 alias
# have subnet router anycast address too
inet6 2001:db8:: prefixlen 64 alias anycast
The following illustrates dynamic configuration setup with dhclient(8) and rtsol(8):
up
# autoconfigure IPv4 address
!dhclient $int
# autoconfigure IPv6 address. Be sure to set $ip6mode to autohost.
!rtsol $int
The following example sets a network name for a wireless interface (using quotes to protect special characters in the name), and starts
dhcpcd(8):
ssid 'my network'
dhcp
The following example is for dynamically-created pseudo interfaces like gif(4). Earlier versions of /etc/rc.d/network required an explicit
'create' command for such interfaces, but creation is now handled automatically.
up
# configure IPv6 default route toward the interface
!route add -inet6 default ::1
!route change -inet6 default -ifp $int
FILES
/etc/rc.d/network
SEE ALSO rc.conf(5), ifconfig(8)BSD April 7, 2011 BSD