Sponsored Content
Full Discussion: gateway
Operating Systems AIX gateway Post 302208078 by magasem on Monday 23rd of June 2008 02:27:32 AM
Old 06-23-2008
# netstat -rn
Routing tables
Destination Gateway Flags Refs Use If PMTU Exp Groups

Route Tree for Protocol Family 2 (Internet):
default 172.29.2.127 UGcA 0 0 en1 - - - =>
default 172.29.2.126 UGcA 0 0 en1 - - -
10.96.70.81/32 172.29.2.126 UGc 0 0 en1 - - -
10.96.70.222 172.29.2.126 UGHW 2 2318 en1 - - - =>
10.96.70.222/32 172.29.2.126 UGc 0 0 en1 - - -
127/8 127.0.0.1 U 10 8961 lo0 - - -
172.20.239.192/32 255.255.255.254 UGc 0 0 en1 - - -
172.29.2/25 172.29.2.1 U 4 84890 en1 - - -
172.29.2.1 127.0.0.1 UGHS 5 73 lo0 - - - =>
172.29.2.1/32 172.29.2.126 UGc 0 0 en1 - - - =>
172.29.2.1/32 127.0.0.1 UG 0 0 lo0 - - -
172.29.2.126 172.29.2.1 UHSb 5 85182 en1 - - -
172.29.7.192/27 172.29.2.100 UGc 0 0 en1 - - -
172.29.7.197 172.29.2.100 UGHW 0 6 en1 - - - =>
172.29.7.197/32 172.29.2.100 UGc 0 0 en1 - - -
192.168.1.0 192.168.1.2 UHSb 0 0 en0 - - - =>
192.168.1/24 192.168.1.2 U 0 1 en0 - - -
192.168.1.2 127.0.0.1 UGHS 0 1 lo0 - - - =>
192.168.1.2/32 127.0.0.1 UG 0 0 lo0 - - -
192.168.1.255 192.168.1.2 UHSb 0 4 en0 - - -

Route Tree for Protocol Family 24 (Internet v6):
::1 ::1 UH 0 0 lo0 16896 - -


My problem appeared in above specific lines.
I have 2 Def.Gw I tried to delete from smitty but I can't, also I tried to delete by command but I faced problem in destination address. By the result above I need to proper way to delete GW:172.29.2.127.
If possible pls.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

gateway address

How can I change the gateway address on my sco Openserver 5.0.6. A cisco firewall is recently installed but the gateway on the system is still pointing at the old one. I want it to use the gateway address of the router. Please help. Thanks (2 Replies)
Discussion started by: sshokunbi
2 Replies

2. IP Networking

gateway

I used "route" to add the default gateway I wrote this: route add default 19x.x.x.x 0 but this is not permanent default gateway. Do I need to use another command? Thank a lot (2 Replies)
Discussion started by: lmena
2 Replies

3. Red Hat

gateway

Hi, in which file and how shuold be decalred a gateway and its IP adresse ? Where and how add a gateway ? Many thanks before. (3 Replies)
Discussion started by: big123456
3 Replies

4. Programming

how we can get gateway address

how we can get the gateway address. i know gethostname used for ipaddress how we can get the system gateway address. thank u inadvance, sree (2 Replies)
Discussion started by: phani_sree
2 Replies

5. SCO

SCO Gateway

Hy everybody ! I'm new on your forum, i'm french and don't speak a good english, so scuse me please for it ! I would to know how modify a gateway on a SCO 5.06 We have a problem, we have multi "beach" adress, one is 192.1.1.x, an other is 192.1.4.x Actually, the computer on 192.1.4.x... (2 Replies)
Discussion started by: LB59
2 Replies

6. AIX

Help with Default Gateway

Hi, I have two interfaces on m AIX 5.3 box. One going to 192.168.1.x and it has a gateway of 192.168.1.1. I configured the other gateway with 192.168.2.x and the default gateway as 192.168.2.1. But I can't get connectivity to the 192.168.2.1 network. Can someone help me out and let me know... (7 Replies)
Discussion started by: bbbngowc
7 Replies

7. Solaris

Gateway

Hi all, Just now i had change the gateway for a server Go to /etc/defaultrouter, change to 10.86.33.1 route delete default 10.86.39.222 route add default 10.86.33.1 now cannot telnet to the server already.. any idea? (5 Replies)
Discussion started by: SmartAntz
5 Replies

8. AIX

Can not Ping Gateway

Hello, I am new to Unix :D and have been trying to configure an AIX server running 5.3. I used smitty or smit to configure interface 0 on the server. I am able to ping the IP I set, however I am still unable to ping the gateway. I configured the IP by navigating to Communications Applications... (6 Replies)
Discussion started by: cdub50
6 Replies

9. Linux

GNUGK-How to setup static gateway to gateway routing

Dear Sir I am a newbie in the world of IP telephony. I have been working with Asterisk PBX (SIP) and Cisco Call Manager (MGCP) but now I am learning on how to work GNUGK for H.323 Gatekeeper. I am having a problem, configuring static call routing on GNUGK in the section ... (0 Replies)
Discussion started by: mfondoum
0 Replies

10. UNIX for Beginners Questions & Answers

Inconsistency between RedHat 6.5 global gateway and single gateway leads to loss of default gateway

Dear friends I use RedHat 6.5, which sets the gateway in the configuration file / etc / sysconfig / network as GATEWAY = 192.168.1.26, and the gateway in the configuration file / etc / sysconfig / network-scripts / ifcfg-eth11 as GATEWAY = 192.168.1.256. The two gateways are different.... (6 Replies)
Discussion started by: tanpeng
6 Replies
Paranoid::Network(3pm)					User Contributed Perl Documentation				    Paranoid::Network(3pm)

NAME
Paranoid::Network - Network functions for paranoid programs VERSION
$Id: Network.pm,v 0.68 2012/05/29 21:38:19 acorliss Exp $ SYNOPSIS
use Paranoid::Network; $rv = ipInNetwork($ip, @networks); $rv = hostInDomain($host, @domains); @ips = extractIP($string1, $string2); $rv = netIntersect( $cidr1, $cidr2 ); DESCRIPTION
This modules contains functions that may be useful for network operations. IPv6 is supported out of the box starting with Perl 5.14. Earlier versions of Perl will require Socket6(3) installed as well. If it is available this module will use it automatically. SUBROUTINES
/METHODS ipInNetwork $rv = ipInNetwork($ip, @networks); This function checks the passed IP against each of the networks or IPs in the list and returns true if there's a match. The list of networks can be either individual IP address or network addresses in CIDR notation or with full netmasks: @networks = qw(127.0.0.1 192.168.0.0/24 172.16.12.0/255.255.240.0); IPv6 is supported if the Socket6(3) module is installed or you're running Perl 5.14 or higher. This routine will select the appropriate address family based on the IP you're testing and filter out the opposing address family in the list. NOTE: IPv4 addresses encoded as IPv6 addresses, e.g.: ::ffff:192.168.0.5 are supported, however an IP address submitted in this format as the IP to test for will be converted to a pure IPv4 address and compared only against the IPv4 networks. This is meant as a convenience to the developer supporting dual-stack systems to avoid having to list IPv4 networks in the array twice like so: ::ffff:192.168.0.0/120, 192.168.0.0/24 Just list IPv4 as IPv4, IPv6 as IPv6, and this routine will convert IPv6-encoded IPv4 addresses automatically. This would make the following test return a true value: ipInNetwork( '::ffff:192.168.0.5', '192.168.0.0/24' ); but ipInNetwork( '::ffff:192.168.0.5', '::ffff:192.168.0.0/120' ); return a false value. This may seem counter intuitive, but it simplifies things in (my alternate) reality. Please note that this automatic conversion only applies to the IP argument, not to any member of the network array. hostInDomain $rv = hostInDomain($host, @domains); This function checks the passed hostname (fully qualified) against each of the domains in the list and returns true if there's a match. None of the domains should have the preceding '.' (i.e., 'foo.com' rather than '.foo.com'). extractIPs @ips = extractIP($string1, $string2); This function extracts IP addresses from arbitrary text. If you have Socket6(3) installed or running Perl 5.14 or higher it will extract IPv6 addresses as well as IPv4 addresses. This extracts only IP addresses, not network addresses in CIDR or dotted octet notation. In the case of the latter the netmask will be extracted as an additional address. NOTE: in the interest of performance this function does only rough regex extraction of IP-looking candidates, then runs them through inet_aton (for IPv4) and inet_pton (for IPv6) to see if they successfully convert. Even with the overhead of Paranoid (with debugging and loadModule calls for Socket6 and what-not) it seems that this is an order of a magnitude faster than doing a pure regex extraction & validation of IPv6 addresses. NOTE: Like the ipInNetwork function we filter out IPv4 addresses encoded as IPv6 addresses since that address is already returned as a pure IPv4 address. netIntersect $rv = netIntersect( $cidr1, $cidr2 ); This function is an IPv4/IPv6 agnostic wrapper for the ipv{4,6}NetIntersect functions provided by Paranoid::Network::IPv{4,6} modules. The return value from which ever function called is passed on directly. Passing this function non-IP or undefined values simply returns a zero. DEPENDENCIES
o Paranoid o Paranoid::Network::Socket o Paranoid::Network::IPv4 o Paranoid::Network::IPv6 BUGS AND LIMITATIONS
AUTHOR
Arthur Corliss (corliss@digitalmages.com) LICENSE AND COPYRIGHT
This software is licensed under the same terms as Perl, itself. Please see http://dev.perl.org/licenses/ for more information. (c) 2005, Arthur Corliss (corliss@digitalmages.com) perl v5.14.2 2012-05-29 Paranoid::Network(3pm)
All times are GMT -4. The time now is 08:53 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy