Sponsored Content
Full Discussion: IP address of Unix machine
Top Forums UNIX for Dummies Questions & Answers IP address of Unix machine Post 302229253 by wempy on Tuesday 26th of August 2008 02:15:09 PM
Old 08-26-2008
and as sad_angle pointed out ifconfig is normally in /sbin so isn't in a normal users path (usually).
so the command (to a confused unix virgin) will be
/sbin/ifconfig ( most linuxes )
/sbin/ifconfig -a (solaris and probably others)
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Changing Machine IP address

Hopefully someone can help with this. I need the command to change the IP address on a machine (7 Replies)
Discussion started by: kkinnon
7 Replies

2. UNIX for Dummies Questions & Answers

Restricting access to a machine by IP Address

I have a need to allow only certain IP addresses to access a machine running solaris 9. I am not sure how this can be accomplished. Thanks in advance for your help. Patch (2 Replies)
Discussion started by: patch
2 Replies

3. Programming

How to get IP Address of machine?

Is there any API call to get IP Address of a machine? I know there is function which returns name of the machine, gethostname(). But I need the IP. Thanks & Regards, Ahsan (7 Replies)
Discussion started by: Ahsan
7 Replies

4. IP Networking

how to retrieve IP address of a machine

hi is there is any command that retrieves the IP address of a machine. Also is there any function in c that does the same. thankx (5 Replies)
Discussion started by: mridula
5 Replies

5. Shell Programming and Scripting

How to get Windows machine's IP address from Unix?

I am using windows Xp. From windows I would connect to my IBM AIX unix machine using telnet client. Is there any command available to view the IP address of Windows machine from Unix? (Note that ifconfig will give unix mahcine's IP address currently logged in.) (3 Replies)
Discussion started by: mvictorvijayan
3 Replies

6. UNIX for Advanced & Expert Users

IP address of machine

Hi i want to know the Ip address of the machine from where i logged into the unix server and made some changes to a file. Can I know the last changes made to a unix file ? (3 Replies)
Discussion started by: harneet2004us
3 Replies

7. Solaris

How to get the IP address / Host name of client machine

Hi How to get the IP address / Host name of a particular user connected to Unix Server. For example: If used 'DevUser1' is connected to Unix server. I need to find out from which PC this connection has been made. How can this be achieved? Thanks (6 Replies)
Discussion started by: MVL
6 Replies

8. Shell Programming and Scripting

How to transfer files from unix machine to local machine using shell script?

Hi All.. Am new to Unix!! Am creating a shell script in which a scenario is like i have transfer the output file from unix machine (Server) to local directory (Windows xp). And also i have to transfer the input file from the local directory to Unix machine (Server) Any help from you... (1 Reply)
Discussion started by: vidhyaS
1 Replies

9. Solaris

i want to set ip address to a virtual machine

hi all i want to set ip address to a vitrual machine i am using following command. but it is not ifconfig -a command output. what is wrong i dont know bash# ifconfig interfacename plumb bash# ifconfig interfacename auto-dhcp Please use code tags next time for your code and data. (4 Replies)
Discussion started by: nikhil kasar
4 Replies

10. Programming

I.p address of machine

i m writing a program which finds the i.p address of the machine. but it just prints out the first three character of the ifconfig output but i want to just print my i.p address lik 10.0.0.222 which is in second line after inet addr: code : #include<iostream> #include<cstdlib> using... (1 Reply)
Discussion started by: console
1 Replies
slattach(8)						      System Manager's Manual						       slattach(8)

NAME
slattach - Attaches a serial line to a network interface SYNOPSIS
/usr/sbin/slattach [{+|-} {c|e|i}] ttyname [baudrate] DESCRIPTION
The slattach command assigns a tty line to a network interface, allowing terminal devices to communicate across a network. The ttyname argument is the name of any valid tty device in /dev. This can be either the full path name (for example, /dev/tty01) or the name in /dev (for example, tty01). The optional baudrate argument is used to set the speed of the connection. The default speed is 9600 baud. The tty line is attached to the first available network interface (sl0, sl1, already be configured with the local and remote addresses of each end of the SLIP connection (see ifconfig(8)). Only a person with superuser authority can attach a network interface. To detach the interface, use the ifconfig interface_id down command after terminating the slattach process. interface_id is the name that is shown by the netstat command. FLAGS
Enables (+) or disables (- TCP header compression. Enables (+) or disables (- automatic TCP header compression. If enabled and the remote system is using TCP header compression, TCP header compression is automatically enabled on the local system. If both local and remote sys- tems have enabled this flag, TCP header compression is not used. One system must force the use of TCP header compression. Enables (+) or disables (- ICMP traffic suppression. If enabled, ICMP traffic (like that generated by ping(8)) is not allowed to pass over the SLIP con- nection. When the system is booted, all flags are initially disabled. Once a flag is enabled, it remains enabled until the system is rebooted or until another slattach command is issued with the flag disabled. NOTES
The slattach command requires the Serial Line Internet Protocol (SLIP), which the kernel must support. If making a SLIP connection to another Tru64 UNIX system, both systems must run slattach. If making a SLIP connection to a system not running the Tru64 UNIX operating system, the other system must support the SLIP protocol. EXAMPLES
To attach a tty device to a network interface, enter: /usr/sbin/slattach /dev/tty01 4800 This command attaches tty01 to a network interface to be used by the Serial Line Internet Protocol (SLIP). The connection speed is 4800 baud. To attach a tty device to a network interface at 19200 bits per second (bps), with TCP header compression enabled and ICMP traffic suppres- sion disabled, enter: /usr/sbin/slattach +c -i /dev/tty01 19200 FILES
Specifies the command path Contains the slattach process ID RELATED INFORMATION
Commands: netstat(1), ifconfig(8) Specifications: SLIP is described in RFC1055. TCP header compression is described in RFC1144. delim off slattach(8)
All times are GMT -4. The time now is 02:25 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy