Sponsored Content
Operating Systems AIX AIX:Command to get netaddress/subnet address command in IPv4/IP6 Post 302326092 by tayyabq8 on Wednesday 17th of June 2009 05:21:12 AM
Old 06-17-2009
Try:
Code:
ifconfig -a

 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Modifying IP Address/Gateway/Subnet in SCO Unix

Hi, I'm new to unix and have absolutely no experience with it. I am trying to change the network setting on the only computer on our network with SCO Unix. We switched ISP's and now have a new set of IP's. I can't for the life of me figure out how to go in and change these settings, please help.... (12 Replies)
Discussion started by: PBNOSGT
12 Replies

2. SCO

ACL for Subnet/IP address

I am trying to find out if you can create an ACL for telnet sessions and restrict it to a certain subnet/IP range.. any information or where to look would be greatly appreciated. thanks (1 Reply)
Discussion started by: marvin51796
1 Replies

3. Shell Programming and Scripting

ip address and subnet comparing

Hmmm, tough question for me, so I put it here. I am trying to use shell script or mysql to do the following thing. tableA, in which all are single ips. sip ------- 1.2.3.4 8.8.8.8 123.3.32.1 .... and tableB, a list of our group subnets. subnet --------- 1.0.0.0/8 20.0.1.0/24 (2 Replies)
Discussion started by: fedora
2 Replies

4. Cybersecurity

Help Required: Command to find IP address and command executed of a user

Hi, I am trying to write a script which would figure out who has run which command and their IP. As i dont have any clue as to which commands would do this job, i request some gurus to help me on this. Thanks Vishwas (2 Replies)
Discussion started by: loggedout
2 Replies

5. IP Networking

lookup ip address, subnet mask, gateway, and dns at same time

Is there a command that can lookup ip address, subnet mask, gateway, and dns all at the same. I know ifconfig can lookup ip address and subnet mask. I know route -n can lookup gateway. Not sure about a dns command. So I hope there is a way to lookup ip address, subnet mask, gateway, and dns all at... (2 Replies)
Discussion started by: cokedude
2 Replies

6. AIX

IPv6/IPv4 Only in AIX

Hi all, I have setup ipv6 in AIX machine using autoconf6 command. I was successfull in doing this. after execution of the command local link address was assigned to one of the interfaces (en1).But I have to setup the following environment as well. 1) Machine with only IPv6 support(IPv4... (0 Replies)
Discussion started by: ard
0 Replies

7. AIX

Generate Private IPv4 address..

Hi, I wanted to generate IPv4 address that communicates between client and server that dumps packets into machines.. Please help with the steps.. Am daemon new to networking.. (1 Reply)
Discussion started by: Priya Amaresh
1 Replies

8. Shell Programming and Scripting

Grep IP address form a text file along with the subnet

I have an input file: class 1 3 5 10.10.10..0/23 hicks jimmy class 3 10.12.10.0/22 mike class.019283 10.10.15.10/20 henry gym.847585 45 192.168.10.0/22 nancy jim steve maya The output should look like this: 10.10.10..0/23 10.12.10.0/22 10.10.15.10/20 192.168.10.0/22 I have the... (3 Replies)
Discussion started by: e_mikey_2000
3 Replies

9. Shell Programming and Scripting

Get all ip address from subnet mask

I have this subnet file shown below. How can I calculate all ip addresses from that list 103.22.200.0/22 141.101.64.0/18 10.0.0.0/22I need to be able to read the subnet file and print all IPs in those subnet to an out put file (3 Replies)
Discussion started by: e_mikey_2000
3 Replies

10. Shell Programming and Scripting

Maxdepth command not working in AIX.Need alternative solution for this command

Hi All, I am trying to select 30 days older files under current directory ,but not from subdirectory using below command. find <Dir> -type f -mtime + 30 This command selecting all the files from current directory and also from sub directory . I read some documention through internet ,... (1 Reply)
Discussion started by: kommineni
1 Replies
cmmodnet(1m)															      cmmodnet(1m)

NAME
cmmodnet - add or remove an address or check whether an address can be added to a subnet or enable or disable a LAN interface in a high availability cluster SYNOPSIS
cmmodnet [-v] {-a|-r|-t} -i { IPv4_address IPv4_subnet | IPv6_address IPv6_subnet} cmmodnet [-v] {-d|-e} LAN_name DESCRIPTION
cmmodnet is used in certain high availability utilities, such as package control scripts and SGeRAC utility scripts for VIP management, to add or remove an IPv4 or IPv6 address to or from network interface connected to the subnet identified by subnet_name. In addition, cmmod- net can be used to check if an IPv4 or IPv6 address can be added to the given subnet identified by subnet_name. cmmodnet can also be used to disable or enable a LAN interface currently configured in a cluster. HP-UX examples of LAN_name can be lan0, lan1; Linux examples of LAN_name can be eth0, bond0. This command simulates a LAN interface failure or recovery in the cluster without changing the physical status of the interface. cmmodnet requires the user be a superuser(UID=0) or have an access policy of FULL_ADMIN allowed in the cluster configuration file. Non- superusers may only use this command to remove IP addresses. See access policy in cmquerycl(1m) or cmmakepkg(1m). Extreme caution should be exercised when executing this command (for puposes other than checking) outside the context of a package control script or SGeRAC utility script. In this capacity it should only be used to remove the relocatable IPv4 or IPv6 addresses of packages which have failed and are in the "halted" state or to disable and enable a LAN interface when absolutely necessary. Using it while the package is running could lead to loss of client connectivity. The user needs to make sure that an IPv6 subnet must be either site-local or global and must not be link-local. Options cmmodnet supports the following options: -v Verbose output will be displayed. -a Add the IPv4_address to the IPv4_subnet or add the IPv6_address to the IPv6_subnet -r Remove the IPv4_address from the IPv4_subnet or remove the IPv6_address from the IPv6_subnet -t Check only. Checks if the IPv4_address can be added to the IPv4_subnet or checks if the IPv6_address can be added to the IPv6_subnet -i IPv4_Address or IPv6_address Use the IP address given for the operation. This is a required parameter. -d Disable LAN interface configured in the cluster. This option simulates the LAN interface failure without actually bringing the interface down. There is no immediate effect if the LAN interface is already disabled or physically down. This option allows failover of IP addresses configured in this LAN interface to an available standby interface (HP-UX only). If no standby is available (HP-UX and Linux), the subnet(s) on this interface will virtually go down and packages monitoring the subnet(s) will be brought down or switched to another node; in the worst case a TOC could result if this is a failfast package. This option also implies that there is no effect on recovery of IP addresses and subnet(s) on this LAN interface if the physical status of the interface changes at later time. -e Enable LAN interface configured in the cluster. This option simulates a LAN interface recovery from previously disabled state. There is no immediate effect if the LAN interface is already enabled or physically down. RETURN VALUE
cmmodnet returns the following values: 0 Successful completion. 1 Command failed. AUTHOR
cmmodnet was developed by HP. SEE ALSO
cmhaltserv(1m), cmmakepkg(1m), cmquerycl(1m), cmrunserv(1m). Requires Optional Serviceguard Software cmmodnet(1m)
All times are GMT -4. The time now is 11:11 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy