06-08-2011
Quote:
Originally Posted by
styno
depends on the OS type & version, but with 'ifconfig -a' and 'netstat -rn' you should be able to script something that works almost everywhere....
Thank you. What's the difference between inet addr and Bcast. I thought Bcast was the gateway for awhile and I just figured out it wasn't when you pointed out the route command.
Quote:
Originally Posted by
Corona688
Don't forget the routing table for gateways. route -n And /etc/resolv.conf for DNS servers(solaris uses something different but I'm not positive what).
Of course there's plenty of more complicated network setups than just IP/netmask/gateway/DNS.
Thank you. I use Fedora. Could you write me a shellscript that checks all this please?
10 More Discussions You Might Find Interesting
1. Solaris
hi,
is there a command or way to see which firmware my network card(s) has?
i could imaging that i would see it in the OBP (show-nets; cd /...@../...; .properties) but is there a way to see it in solaris?
Solaris9 (09/05) on a V440 with GigaSwift Ethernet MMF (X4151A) adapters (using ce... (2 Replies)
Discussion started by: pressy
2 Replies
2. Solaris
Can someone please point me in the correct direction of where I configure the network information on SunOS 5.8 server? (Searching SunSolve and Google have resulted in thousands of fixes for potential errors, but I can't find the general instructions, etc. for starting the process).
Thanks! (2 Replies)
Discussion started by: FredSmith
2 Replies
3. Linux
Hello everybody,
How can link network interface to the output of lspci -vv. Basicly i need to know who is the manufacturer of a specific interface, for example eth0 {Is it an Intel, or Broadcome, or something else}. Is there a way to find that out?
Thanx (5 Replies)
Discussion started by: aleksey
5 Replies
4. AIX
hi all,
how do i change the routing info and make sure i will be able to connect remotely?
any ideas please?
thanks in advance. (1 Reply)
Discussion started by: itik
1 Replies
5. OS X (Apple)
I have found an excellent OS X pref pane that allows you to output log files or terminal commands/scripts onto the desktop in the background.
What I want to do is create a script that outputs the following...
- Mac OS X Version and Build (As shown in the about this mac)
- Current username
-... (6 Replies)
Discussion started by: digitaljunkie
6 Replies
6. Shell Programming and Scripting
Hey guys,
I just started college a few days ago. To my dismay, my school has a very frustrating wireless network access system. Every time you want to use the network, you need to open up a browser and get re-directed to a login page. Every access, you need to reenter the same username and... (1 Reply)
Discussion started by: Chain Breaker
1 Replies
7. UNIX and Linux Applications
In gnome there was an indicator applet that displayed your ip address, subnet mask, gateway, and dns. Is there a similar applet in kde? (0 Replies)
Discussion started by: cokedude
0 Replies
8. Emergency UNIX and Linux Support
Hi all,
I have run into this problem while trying to setup a CentOS based NAS for a friend of mine. We are using CentOS 6. The share on server can be accessed by it's IP. I have setup netbios name for the server. But that does not help. We need it to show up on Windows Network Places... (3 Replies)
Discussion started by: admin_xor
3 Replies
9. UNIX for Dummies Questions & Answers
Hi,
Need to Collect IP Details in the following format
ServerName ; IPADDR1 ; NETMASK1 ; IPADDR2 ; NETMASK2 ; IPADDR3 ; NETMASK3 ;
Could you please give me the suggesstions.
Thanks (1 Reply)
Discussion started by: rajasekg
1 Replies
10. Shell Programming and Scripting
good evening,
i'm still new in scripting but i'm learning every day and i'm enjoying it.
so i have api website (htt p://api.nobelprize.org/v1/prize.json), i want to make a script that allows me to give it two arguments like ./test.sh 2005 physics, 2000 is for the year and physics is category... (1 Reply)
Discussion started by: kalbsghir
1 Replies
LEARN ABOUT HPUX
ripquery
ripquery(1M) ripquery(1M)
NAME
ripquery - query RIP gateways
SYNOPSIS
authkey] dest[time] gateway ...
DESCRIPTION
is used to request all routes known by a RIP gateway by sending a RIP request or POLL command. The routing information in any routing pack-
ets returned is displayed numerically and symbolically. is intended to be used as a tool for debugging gateways, not for network manage-
ment. SNMP is the preferred protocol for network management.
by default uses the RIP POLL command, which is an undocumented extension to the RIP specification supported by on SunOS 3.x and later and
by 1.4 and later. The RIP POLL command is preferred over the RIP REQUEST command because it is not subject to Split Horizon and/or Poi-
soned Reverse. See the RIP RFC for more information.
Options
Send the query as a version 1 packet.
Send the query as a version 2 packet (default).
Specifies the authentication password to use for queries. If
specified, an authentication type of SIMPLE will be used, if is specified, an authentication type of MD5 will be used; oth-
erwise the default is an authentication type of NONE. Authentication fields in incoming packets will be displayed, but not
validated.
Prevents the address of the responding host from being looked up
to determine the symbolic name.
Specifies that the query should be for the specified
instead of complete routing table. The specification of the optional mask implies a version 2 query. Up to 23 requests about
specific destinations may be include in one packet.
Uses the RIP POLL command to request information from the routing
table. This is the default, but is an undocumented extension supported only by some versions of unOS 3.x and later versions
of If there is no response to the RIP POLL command, the RIP REQUEST command is tried. responds to a POLL command with all
the routes learned via RIP.
Used the RIP REQUEST command to request information from the
gateway's routing table. Unlike the RIP POLL command, all gateways should support the RIP REQUEST. If there is no response
to the RIP REQUEST command, the RIP POLL command is tried. responds to a REQUEST command with all the routes he announces
out the specified interface. Due to limitations in the UDP interface, on systems based on BSD 4.3 Reno or earlier, REQUESTs
respond about the interface used to route packets back to the sender. This can be avoided by running on the host being
queried.
Version information about
is displayed before querying the gateways.
Specifies the time in seconds to wait for the initial response
from a gateway. The default value is 5 seconds.
AUTHORS
Jeffrey C Honig.
SEE ALSO
gated(1M), gdc(1M), ospf_monitor(1M),
BUGS
Some versions of Unix do not allow looking up the symbolic name of a subnet.
ripquery(1M)