Sponsored Content
Operating Systems Solaris IFCONFIG is available... sort of Post 302681643 by Binary Buddha on Friday 3rd of August 2012 05:52:07 PM
Old 08-03-2012
Quote:
Originally Posted by Corona688
Did you check the full path on the remote system, though? It might be a different full path on your remote system than your local one. See, mine is /sbin/ifconfig. /usr/ seems a bit odd to me.
Yes, I did. I modified the script on the remote machine to point to /usr/sbin/ifconfig which is where it's located. I don't have whereis so I used which. Which is pretty much the same. It's Solaris 10 on a sparc Netra-T5220.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Why do I have to cd into /sbin to get to ifconfig?

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)
Discussion started by: Jody
3 Replies

2. HP-UX

HP-UX ifconfig question.

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)
Discussion started by: viRaven
4 Replies

3. UNIX for Dummies Questions & Answers

ifconfig

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)
Discussion started by: breigner
7 Replies

4. OS X (Apple)

ifconfig

Hi, I type (as root) "ifconfig en1 ether aa:aa: " but it doesnt change the mac of my airport. Can anyone help me? Thx. (0 Replies)
Discussion started by: Jariya
0 Replies

5. Shell Programming and Scripting

ifconfig!!!!

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)
Discussion started by: moco
3 Replies

6. UNIX for Dummies Questions & Answers

ifconfig and ipconfig

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)
Discussion started by: tsmotix
2 Replies

7. IP Networking

ifconfig problem

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)
Discussion started by: amit_sapre
5 Replies

8. Linux

ifconfig - information

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)
Discussion started by: ahamed101
2 Replies

9. Shell Programming and Scripting

not able to run ifconfig

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)
Discussion started by: mail2sant
3 Replies

10. Solaris

Ifconfig command ?

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
FAKE(8) 						      System Manager's Manual							   FAKE(8)

NAME
fake - IP address takeover tool SYNOPSIS
fake [remove] IP_ADDRESS DESCRIPTION
The fake utility enables the switching in of a backup server by bringing up an additional interface and using ARP spoofing to take over IP_ADDRESS. Variants of the script have been used extensively at Zip World (http://www.zipworld.com.au/) for backing up mail, web and proxy servers. Although this system has been shown to work you are well advised to test the system thoroughly before putting it into production. Please read the documents in /usr/share/doc/fake/ for an explanation of how fake works and for a discussion of issues surrounding its use. OPTIONS
remove Stop the takeover of an IP address. Without this option, fake starts the takeover of an IP address. GLOBAL CONFIGURATION FILE
The global configuration file is in /etc/fake/.fakerc. The settings there are overridden by those in ${HOME}/.fakerc. Here is a sample configuration file. ############################################################ # Set up basic environment for fake # Variables are set as bash variables # i.e. <VARIABLE>=<value> # # Must set: # ARP_DELAY: Delay in seconds between gratuitous ARP # PID_DIR: Directory where PID files are kept # INSTANCE_CONFIG_DIR: Directory where specific # configuration files for an IP address takeover are kept # CLEAR_ROUTERS_FILE: New line delimited list of routers to rsh # to and execute "clear arp-cache" # FAKE_RSH: Programme to use to "rsh" to another machine # to obtain macaddress by running ifconfig # # PATH can be set here to ensure that send_arp is in the # path ############################################################ FAKE_HOME="/etc/fake" #PATH=/sbin:/usr/sbin:/bin:/usr/bin ARP_DELAY=1 CLEAR_ROUTERS_FILE="$FAKE_HOME/clear_routers" PID_DIR="/var/run" INSTANCE_CONFIG_DIR="$FAKE_HOME/instance_config" #Only needed if you wish to send gratuitous ARP #advertising the "real" mac address when turning fake off #FAKE_RSH=ssh INSTANCE CONFIGURATION
To configure an instance of fake, create /etc/fake/instance_config/<IP-address-to-take-over>.cfg with the following format: SPOOF_IP=<IP-address-to-take-over> The SPOOF_IP variable must contain the same IP address as appears in the name of the file. This is checked at run time. IFCONFIG=TRUE|FALSE SPOOF_NETMASK=<netmask-of-network-that-IP-address-to-take-over-is-on> TARGET_INTERFACE=<interface-to-bring-up> If the IFCONFIG variable is set to TRUE, the address specified by SPOOF_IP will be brought up on the interface specified by TARGET_INTER- FACE; SPOOF_NETMASK and TARGET_INTERFACE must also be defined. For obvious reasons it is very important that the TARGET_INTERFACEs of running instances of fake all be different from one another. Optionally if you wish to rsh to the main server and advertise the "real" MAC address when turning fake off then set the following; FOREIGN_INTERFACE=<interface-on-foreign-host-with-MAC-address-to-use> FOREIGN_ARP=<number-of-ARPs-to-send-with-real-MAC-address> To use this last feature in an automated fashion you will need to be able to $FAKE_RSH to $SPOOF_IP from the host that fake runs on without manual authentication. With rsh this is typically achived using .rhosts; with ssh an RSH key with an empty passphrase can be employed. Here is an example of /etc/fake/instance_config/203.12.97.7.cfg: SPOOF_IP=203.12.97.7 IFCONFIG=TRUE SPOOF_NETMASK=255.255.255.0 TARGET_INTERFACE=eth0:2 FOREIGN_INTERFACE=eth0 FOREIGN_ARP=5 ACTIVATION
To activate fake, run: fake <IP-address-to-take-over> & Logs will be made to the local0.notice syslog facility. On startup you should see messages in the syslog; running ifconfig should show the new interface; running route should show a route for the spoofed IP address on the new interface (which is needed so the machine that fake is running on can communicate correctly to this IP address); and running tcpdump -i <interface> arp should show the gratuitous ARP packets. DEACTIVATION
To deactivate, run: fake remove <IP-address-to-take-over> As of version 1.1.2 the fake process can be sent a SIGTERM or SIGHUP to effect the removal. On removal you should see a message in the syslog; ifconfig should show that the new interface has been removed; route should show that the new route has been removed; and tcpdump should show that the gratuitous ARP has stopped. Note: Activating fake multiple times with the same arguments has the same effect as activating it once. Similarly, deactivating fake mul- tiple times with the same arguments has the same effect as deactivating it once. FILES
/etc/fake/.fakerc /etc/fake/clear_routers /etc/fake/instance_config/<IP-address>.cfg /var/run/fake.<IP-address>.pid AUTHOR
Horms <horms@verge.net.au> 9 June 2004 FAKE(8)
All times are GMT -4. The time now is 11:44 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy