Sponsored Content
Full Discussion: Find LAN Address
Top Forums UNIX for Advanced & Expert Users Find LAN Address Post 302082362 by sssow on Tuesday 1st of August 2006 03:54:27 PM
Old 08-01-2006
try ipconfig on windows and ifconfig on unix
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How to find i.p address of our server

I don't have root access. How do I find i.p address of our sun server? Thanks. (4 Replies)
Discussion started by: vpotluri
4 Replies

2. Solaris

How to configure private LAN and coporate LAN on the same machine-Solaris10

Hi , I am trying to configure a private LAN and corporate LAN on the same machien on Solaris 10. How can I achieve this? Thanks (1 Reply)
Discussion started by: deedee
1 Replies

3. HP-UX

how to find the IP address of a printer

I'm trying to find the IP address of a print queue. I tried this, but nada. cat /etc/hosts | lp -d lp01 Looked in the hosts file but it's not there (2 Replies)
Discussion started by: abNORMal
2 Replies

4. AIX

How to find the router IP address

How to find the router IP address (2 Replies)
Discussion started by: AIXlearner
2 Replies

5. IP Networking

Local Lan, no-ip directed DNS forward, surf within lan

Hi, We have a website running on a local centos 5.4 surfer, static IP. The domain.com uses no-ip.com to take care of the DNS, it forwards all to my server. My router receives the port 80 call, routes it to my server and the world can see domain.com perfectly fine. However, we cannot see... (3 Replies)
Discussion started by: lawstudent
3 Replies

6. IP Networking

Identify unknown LAN server from IP or MAC address

Hi, I just got a little task trying to seemingly find a needle in a haystack. I have a server (FreeBSD) where several NFS mounts are established from a host somewhere on the local LAN with the 192.168.x.x prefix. Needless to say, the guy who set this up wasn't too fond of documenting... (2 Replies)
Discussion started by: brightstorm
2 Replies

7. UNIX for Dummies Questions & Answers

Find unique IP address in a list

Hello, I got a list of IP address from which I would like to remove the duplicates. I cat the file and pipe it to uniq -u or uniq -c, I got the same output with all the duplicates. Can anybody please tell me how I can remove the duplicates IPs from this file? This is what I used. cat filename |... (3 Replies)
Discussion started by: Pouchie1
3 Replies

8. UNIX for Dummies Questions & Answers

How to Find another IP address

Hi Guys, I want to find another(Local host) machine IP address from my machine.. We are all connected in the same server, I mean same LAN. What i done is Connected with that user machine using SSH and SU.. After that i used IFCONFIG but it shows my Ip address. Can not able to get the... (8 Replies)
Discussion started by: Adhi
8 Replies

9. Shell Programming and Scripting

Script to find available IP address

Hi, I am trying to write a script that will check all used IP on the server and then print me an addressees that are not in use. Problem is in comparing two variables #!/bin/bash NETSTAT=$(netstat -ntp | awk '{ print $4 }' | grep -v "127.0.0.1" | cut -d ":" -f1 | grep "^"|sort | uniq )... (6 Replies)
Discussion started by: nemesis911
6 Replies

10. Shell Programming and Scripting

Find active SSH servers w/ ssh keys on LAN

Hi, I am trying to complete my bash script in order to find which SSH servers on LAN are still active with the ssh keys, but i am frozen at this step: #!/bin/bash # LAN SSH KEYS DISCOVERY SCRIPT </etc/passwd \ grep /bin/bash | cut -d: -f6 | sudo xargs -i -- sh -c ' && cat... (11 Replies)
Discussion started by: syrius
11 Replies
IPCONFIG(8)						    BSD System Manager's Manual 					       IPCONFIG(8)

NAME
ipconfig -- view and control IP configuration state SYNOPSIS
ipconfig waitall ipconfig getifaddr interface-name ipconfig ifcount ipconfig getoption interface-name (option-name | option-code) ipconfig getpacket interface-name ipconfig getv6packet interface-name ipconfig setverbose level ipconfig set interface-name NONE ipconfig set interface-name (DHCP | BOOTP) ipconfig set interface-name (MANUAL | INFORM) ip-address subnet-mask ipconfig set interface-name NONE-V6 ipconfig set interface-name AUTOMATIC-V6 ipconfig set interface-name MANUAL-V6 ipv6-address prefix-length ipconfig set interface-name 6TO4 DESCRIPTION
ipconfig is a utility that communicates with the IPConfiguration agent to retrieve and set IP configuration parameters. It should only be used in a test and debug context. Using it for any other purpose is strongly discouraged. Public API's in the SystemConfiguration framework are currently the only supported way to access and control the state of IPConfiguration. The IPConfiguration agent is responsible for configuring and managing the IP addresses on direct, connectionless interfaces such as IEEE 802.3 Ethernet and IEEE 1394 FireWire. The IPConfiguration agent is a program bundle that is loaded and executed by the configd(8) process. The IPConfiguration agent implements the client side of the DHCP and BOOTP protocols described in RFC951, RFC1542, RFC2131, and RFC2132. It also assigns and maintains static IP addresses. It may also allocate and assign a link-local IP address if DHCP fails to acquire an IP address. In all cases, the IPConfiguration agent performs IP address conflict detection before assigning an IP address to an interface. COMMANDS
The ipconfig utility provides several commands: waitall Blocks until all network services have completed configuring, or have timed out in the process of configuring. This is only use- ful for initial system start-up time synchronization for legacy network services that are incapable of dealing with dynamic net- work configuration changes. getifaddr interface-name Prints to standard output the IP address for the first network service associated with the given interface. The output will be empty if no service is currently configured or active on the interface. ifcount Prints the number of interfaces that IPConfiguration is capable of configuring. The value that's printed will not change unless relevant network interfaces are either added to or removed from the system. getoption interface-name (option-name | option-code) Prints the BOOTP/DHCP option with the given name or option code integer value. See bootpd(8) for option code names. If an option has multiple values e.g. domain_name_server, only the first value is printed. getpacket interface-name Prints to standard output the DHCP/BOOTP packet that the client accepted from the DHCP/BOOTP server. This command is useful to check what the server provided, and whether the values are sensible. This command outputs nothing if DHCP/BOOTP is not active on the interface, or the attempt to acquire an IP address was unsuccessful. getv6packet interface-name Prints to standard output the latest DHCPv6 packet that the client accepted from the DHCPv6 server. In the case of stateful DHCPv6, it corresponds to the last packet from the server that contained addressing information. This command is useful to check what the server provided, and whether the values are sensible. This command outputs nothing if DHCPv6 is not active on the interface. set interface-name NONE set interface-name (DHCP | BOOTP) set interface-name (MANUAL | INFORM) ip-address subnet-mask set interface-name NONE-V6 set interface-name AUTOMATIC-V6 set interface-name MANUAL-V6 ipv6-address prefix-length set interface-name 6TO4 Sets the interface to have a new temporary network service of the given type. Any existing services on the interface for the particular protocol (IPv4 or IPv6) are first de-configured before the new service is instantiated. If NONE is specified, all existing IPv4 services are de-configured. If NONE-V6 is specified, all existing IPv6 services are de- configured. DHCP and BOOTP require no additional arguments. The IP address, subnet mask, router, and DNS information are retrieved automati- cally. Both MANUAL and INFORM require the specification of an IP address ip-address and a subnet mask subnet-mask. The INFORM service configures the IP address statically like MANUAL, but then broadcasts DHCP INFORM packets to retrieve DHCP option information. If the DHCP server responds and supplies a subnet mask, that subnet mask is used instead of the specified subnet-mask. AUTOMATIC-V6 requires no additional arguments. The IPv6 address, prefix length and router are retrieved automatically. MANUAL-V6 requires the specification of the IPv6 address ipv6-address and a prefix length prefix-length. 6TO4 only works on Six To Four (IFT_STF) interfaces e.g. stf0. If it is specified on a non-IFT_STF interface, it has the same effect as specifying NONE-V6. The set command requires root privileges. Note: The set command is very useful for debugging, but it can't be used to configure a persistent service. The temporary ser- vices that are created only remain until the next network configuration change occurs. See scselect(8). setverbose level Enables or disables verbose mode logging in the IPConfiguration agent. Specify a level value of 0 to disable verbose logging, the default. Specify a value of 1 to enable verbose logging. This setting is persistent across boots of the operating system. When enabled, verbose log files are generated in the directory /Library/Logs/CrashReporter. The filenames follow the naming con- vention com.apple.networking.IPConfiguration.log.<timestamp>. The setverbose command requires root privileges. EXAMPLES
# ipconfig getpacket en0 op = BOOTREPLY htype = 1 dp_flags = 0 hlen = 6 hops = 0 xid = 1956115059 secs = 0 ciaddr = 0.0.0.0 yiaddr = 192.168.4.10 siaddr = 192.168.4.1 giaddr = 0.0.0.0 chaddr = 0:3:93:7a:d7:5c sname = dhcp.mycompany.net file = options: Options count is 10 dhcp_message_type (uint8): ACK 0x5 server_identifier (ip): 192.168.4.1 lease_time (uint32): 0x164a subnet_mask (ip): 255.255.255.0 router (ip_mult): {192.168.4.1} domain_name_server (ip_mult): {192.168.4.1} domain_name (string): mycompany.net end (none): # ipconfig getoption en0 router 192.168.4.1 SEE ALSO
configd(8), bootpd(8), scselect(8) HISTORY
The ipconfig command first appeared in Mac OS X Version 10.0 Public Beta. Mac OS X March 27, 2013 Mac OS X
All times are GMT -4. The time now is 02:12 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy