Sponsored Content
Full Discussion: gateways
Top Forums UNIX for Dummies Questions & Answers gateways Post 10311 by cybler on Monday 12th of November 2001 02:37:59 PM
Old 11-12-2001
First, what UNIX OS do you have on these locations? Every one is a bit different in how it stores network information.
 

7 More Discussions You Might Find Interesting

1. IP Networking

2 gateways on the same unix box

Hello there: I have these situation : I have a unix sco openserver 5.0.7 box and a windows server 2003. There is a main office and 2 remote office that log in trough a vpn tunnel. One tunnel From Main to remote1 and the other from Main to remote 2. Problem! The dsl connection i have is... (2 Replies)
Discussion started by: josramon
2 Replies

2. AIX

setup of 2 gateways on AIX

Please, anybody help on resolving the following problem? I have 2 netwotks ( 10.0.0.0 and 10.0.11.0 ) on 2 different areas I need both networks to telnet the corresponding ethernet card. This is a prblem because AIX is configured with a default gateway. Please advice how to assign 2... (2 Replies)
Discussion started by: mynikolas
2 Replies

3. Solaris

Configuring 1 Nic card with 2 IP addresses and 2 seperate default Gateways in Solaris

Hi ...... I'm trying to configure my Solaris servers with only one NIC card to have 2 IP addresses as well as 2 different default gateways. ( NOT to be confused with multi-pathing - with 2 physical IPs & 1 virtual ip) Thanks, Remi (1 Reply)
Discussion started by: Remi
1 Replies

4. Shell Programming and Scripting

configuring 2-gateways in linux

Hi, I want to configure 2-gateways in Linux . Please tell me how I can achieve this. I am accesing 2-internet connection through these 2-gateways. So I am looking that if 1-gets down then also other one is working. Regards JAGDISH (1 Reply)
Discussion started by: jagdish.machhi@
1 Replies

5. AIX

2 default gateways

I have a bunch of servers on AIX, we have at least 2 NIC cards in each of them. We upgraded them from AIX 4.2 to AIX 5.2. Since then when we reboot a server its always coming up with 2 default gateways. Habitually this is not a problem but sometime its causing some connection problem. We... (10 Replies)
Discussion started by: ce9888
10 Replies

6. BSD

Two gateways

I have a web server running FreeBSD 7.2, i have configured two NICs in the following way: fxp0: 200.14.xxx.254 sk0: 200.12.xxx.4 gateway: 200.14.xxx.1 both ip addresses are public but only those requests to fxp0 are successful. I have tried configuring nat and binat in sk0 but it... (4 Replies)
Discussion started by: edgarvm
4 Replies

7. UNIX for Dummies Questions & Answers

iptables / ip route packet routing with multiple gateways

Hi all. Linux noob here. I was hoping someone could help me with configuring some routing rules on my router, an Asus AC68. The router is connected to two gateways, wan0_gateway and wan1_gateway. I have rules set up in the router gui that will push all traffic from every IP other than my own... (0 Replies)
Discussion started by: Bishi
0 Replies
getnetbyname(3) 					     Library Functions Manual						   getnetbyname(3)

NAME
getnetbyname, getnetbyname_r - Get a network entry by name LIBRARY
Standard C Library (libc.so, libc.a) SYNOPSIS
#include <netdb.h> struct netent *getnetbyname( const char *name); [Tru64 UNIX] The following obsolete function is supported in order to maintain backward compatibility with previous versions of the oper- ating system. You should not use it in new designs. int getnetbyname_r( const char *name, struct netent *net, struct netent_data *net_data); STANDARDS
Interfaces documented on this reference page conform to industry standards as follows: getnetbyname(): XNS4.0 Refer to the standards(5) reference page for more information about industry standards and associated tags. PARAMETERS
Specifies the official network name or alias. [Tru64 UNIX] For getnetbyname_r() only, this points to the netent structure. The netdb.h header file defines the netent structure. [Tru64 UNIX] For getnetbyname_r() only, this is data for the networks database. The netdb.h header file defines the netent_data structure. DESCRIPTION
The getnetbyname() function returns a pointer to a structure of type netent. Its members specify data in fields from either the local /etc/networks file or the NIS distributed network database. To determine which file or files to search, and in which order, the system uses the switches in the /etc/svc.conf file. The netdb.h header file defines the netent structure. The getnetbyname() function searches the networks file sequentially until a match with the name parameter occurs. When EOF (End-of-File) is reached without a match, an null pointer is returned by this function. Use the endnetent() function to close the networks file. NOTES
The getnetbyname() function returns a pointer to thread-specific data. Subsequent calls to this or a related function from the same thread overwrite this data. [Tru64 UNIX] The getnetbyname_r() function is an obsolete reentrant version of the getnetbyname() function. It is supported in order to maintain backward compatibility with previous versions of the operating system and should not be used in new designs. Note that you must set the net_fp field of the netent_data structure to NULL before its first access by either the setnetent_r() or getnetbyname_r() function. You must initialize the _net_stayopen flag of the netent_data structure if you are not using the setnetent() function. RETURN VALUES
Upon successful completion, the getnetbyname() function returns a pointer to a netent structure. If it fails or reaches the end of the /etc/networks name file, it returns a null pointer. [Tru64 UNIX] Upon successful completion, the getnetbyname_r() function stores the netent structure in the location pointed to by net, and returns a value of 0 (zero). Upon failure, it returns a value of -1. ERRORS
Current industry standards do not define error values for the getnetbyname() function. [Tru64 UNIX] If any of the following conditions occurs, the getnetbyname_r() function sets errno to the corresponding value: The net or net_data parameter is invalid. The search failed. FILES
This file is the DARPA Internet network name database file. Each record in the file occupies a single line and has three fields: the offi- cial network name, the network number, and alias. RELATED INFORMATION
Functions: endnetent(3), getnetent(3), getnetbyaddr(3), setnetent(3). Files: networks(4), svc.conf(4). Networks: nis_intro(7). Standards: standards(5). delim off getnetbyname(3)
All times are GMT -4. The time now is 05:56 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy