Sponsored Content
Operating Systems Linux setting up internet connection Post 302105220 by Corona688 on Wednesday 31st of January 2007 10:46:35 AM
Old 01-31-2007
Quote:
Originally Posted by laddu
No, there is no ethernet card.how do i connect to internet using existing connection
With the USB connection attached, could you post the output of /sbin/ifconfig and /sbin/route -n please?
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

setup internet connection

HI.. i was wondering if someone out there can help me setup my internet connection.... i have no clue how to set it up.. could you please tell me step by step how to set it up.. i have a static ip, im using a cable modem to connect. my os is solaris 8. Please email me at lil_souldier@hotmail.com... (2 Replies)
Discussion started by: souldier
2 Replies

2. UNIX for Advanced & Expert Users

setting up internet connection!!

HI unix guru.. i need your help again.. i tring to setup my sun box for internet connection, i am using @home cable service i have 8 pc running different operating systems. every other computer can go online but this sun box for some reason alway give me and error, i enter my ip address... (1 Reply)
Discussion started by: souldier
1 Replies

3. Solaris

Internet Connection via Lan

I have a sun wokstation running solaris 9 , I want to configuring my lan card to access internet . my IP address : 192.168.144.20 ISP gateway : 192.168.144.1 DNS address : 202.56.250.5 all helps will be appreciated thanks (2 Replies)
Discussion started by: una
2 Replies

4. UNIX for Dummies Questions & Answers

solaris internet connection

Hi everyone, I just installed Solaris 10 in my PC. However, once I finished installing it, I lost my internet connection. When I switch to windows, the internet can run smoothly. Does anyone know how to set up internet connection in Solaris ? I am so sorry, I am new in UNIX (7 Replies)
Discussion started by: qqq
7 Replies

5. UNIX for Dummies Questions & Answers

Connection of SUN to internet and to PC

Hi, 1)If someone could help me out that how could i connect to internet. Below is the system specification, and i have dial up connection. Sun UltraSPARC-IIi 270MHz processor 256 MB memory 8.4 GB HDD 100/10BaseT Ethernet CD-ROM drive 3.5" Floppy drive 2)Also, how to connect Sun to... (0 Replies)
Discussion started by: younics
0 Replies

6. UNIX for Dummies Questions & Answers

RHEL Internet connection

Hi all :) I got a problem that I need to solve here, its kinda confusing me. I got servers which is RHEL that its not supposed to connect to internet, but right now I want this server to connect to internet, so firewall and everything already open. but I have no idea why it still unable to... (2 Replies)
Discussion started by: flekzout
2 Replies

7. BSD

Internet connection with PC BSD

Hi friends! :) I have got an Acer laptop. in one of the partion's I have got PC BSD installed. I am new UNIX user coz first I was using Windows, so I am still learning it. I only know few commands, and I find it very interesting. Unfrtunately, when I log into PC BSD, I can't connect to the... (3 Replies)
Discussion started by: dubbio123
3 Replies

8. UNIX for Dummies Questions & Answers

check Internet connection?

I am using SUSE OS and want to check internet connection... I have tried: ping -c3 google.com The output i have got is: Unknown host google.com does it means that i do not have Internet connection?? Or please help me with any Command to find Internet connection? Thanks for any help. (1 Reply)
Discussion started by: salil2012
1 Replies

9. Solaris

Internet connection

I got solaris 10 works, but I cannot set up my internet connection. When I ping a website and i open the web browser, it doesn't work. When the installation asked 'Am I in a network?' i answerd 'no'. I think this is my minstake. How can i get Internet, now? I have a ADSL modem (not router).... (5 Replies)
Discussion started by: mghis
5 Replies

10. IP Networking

Sharing internet connection

Hello all, Recently took a dive into Unix using Fedora 12 atm. I have cable modem with DHCP and a linksys 8 port router. With windows I was able to simple use the uplink port and plug each computer into the switch and use the internet connection. Having no luck doing the same in Unix. I have... (0 Replies)
Discussion started by: Fingerz
0 Replies
IFWATCHD(8)						    BSD System Manager's Manual 					       IFWATCHD(8)

NAME
ifwatchd -- watch for addresses added to or deleted from interfaces and call up/down-scripts for them SYNOPSIS
ifwatchd [-hiqv] [-A arrival-script] [-c carrier-script] [-D departure-script] [-d down-script] [-u up-script] [-n no-carrier-script] ifname(s) DESCRIPTION
ifwatchd is used to monitor dynamic interfaces (for example PPP interfaces) for address changes, and to monitor static interfaces for carrier changes. Sometimes these interfaces are accompanied by a daemon program, which can take care of running any necessary scripts (like pppd(8) or isdnd(8)), but sometimes the interfaces run completely autonomously (like pppoe(4)). ifwatchd provides a generic way to watch these types of changes. It works by monitoring the routing socket and interpreting 'RTM_NEWADDR' (address added), 'RTM_DELADDR' (address deleted) and 'RTM_IFINFO' (carrier detect or loss of carrier) messages. It does not need special privileges to do this. The scripts called for up or down events are run with the same user id as ifwatchd is run. The following options are available: -A arrival-script Specify the command to invoke on arrival of new interfaces (like PCMCIA cards). -c carrier-script Specify the command to invoke when the carrier status transitions from no carrier to carrier. -D departure-script Specify the command to invoke when an interface departs (for example a PCMCIA card is removed.) -d down-script Specify the command to invoke on ``interface down'' events (or: deletion of an address from an interface). -h Show the synopsis. -i Inhibit a call to the up-script on startup for all watched interfaces already marked up. If this option is not given, ifwatchd will check all watched interfaces on startup whether they are already marked up and, if they are, call the up-script with appropriate parameters. Additionally, if the interface is up and has a link, ifwatchd will run the carrier script. Since ifwatchd typically is started late in the system boot sequence, some of the monitored interfaces may already have come up when it finally starts, but their up-scripts have not been called. By default ifwatchd calls them on startup to account for this (and make the scripts easier.) -n no-carrier-script Specify the command to invoke when the carrier status transitions from carrier to no carrier. -q Be quiet and don't log non-error messages to syslog. -u up-script Specify the command to invoke on ``interface up'' events (or: addition of an address to an interface). -v Run in verbose debug mode and do not detach from the controlling terminal. Output verbose progress messages and flag errors ignored during normal operation. You do not want to use this option in /etc/rc.conf! ifname(s) The name of the interface to watch. Multiple interfaces may be specified. Events for other interfaces are ignored. EXAMPLES
# ifwatchd -u /etc/ppp/ip-up -d /etc/ppp/ip-down pppoe0 If your pppoe0 interface is your main connection to the internet, the typical use of the up/down scripts is to add and remove a default route. This is an example for an up script doing this: #! /bin/sh /sbin/route add default $5 /sbin/route add -inet6 default fe80::2 -iface ifp $1 As described below the fifth command line parameter will contain the peer address of the pppoe link. The corresponding ip-down script is: #! /bin/sh /sbin/route delete default $5 /sbin/route delete -inet6 default fe80::2 Note that this is not a good idea if you have pppoe0 configured to connect only on demand (via the link1 flag), but works well for all perma- nent connected cases. Use ! /sbin/route add default -iface 0.0.0.1 in your /etc/ifconfig.pppoe0 file in the on-demand case. The next example is for dhclient users. # ifwatchd -i -c /etc/dhcp/carrier-detect tlp0 With the above command, the carrier-detect script will be invoked when a carrier is detected on the interface tlp0. Note that the -i flag prevents any action based on the initial state. A script like the following should work for most users, although it will not work for machines with multiple interfaces running dhclient. #! /bin/sh # Arguments: ifname tty speed address destination # If there is a dhclient already running, kill it. # (This step could be put in a distinct no-carrier script, # if desired.) if [ -f /var/run/dhclient.pid ]; then /bin/kill `/bin/cat /var/run/dhclient.pid` fi # Start dhclient again on this interface /sbin/dhclient $1 PARAMETERS PASSED TO SCRIPTS
The invoked scripts get passed these parameters: ifname The name of the interface this change is for (this allows to share the same script for multiple interfaces watched and dispatch- ing on the interface name in the script). tty Dummy parameter for compatibility with pppd(8) which will always be /dev/null. speed Dummy parameter for compatibility with pppd(8) which will always be 9600. address The new address if this is an up event, or the no longer valid old address if this is a down event. The format of the address depends on the address family, for IPv4 it is the usual dotted quad notation, for IPv6 the colon sepa- rated standard notation. destination For point to point interfaces, this is the remote address of the interface. For other interfaces it is the broadcast address. ERRORS
The program logs to the syslog daemon as facility ``daemon''. For detailed debugging use the -v (verbose) option. SEE ALSO
pppoe(4), route(4), ifconfig.if(5), rc.d(8), route(8) HISTORY
The ifwatchd utility appeared in NetBSD 1.6. AUTHORS
The program was written by Martin Husemann <martin@NetBSD.org>. CAVEATS
Due to the nature of the program a lot of stupid errors can not easily be caught in advance without removing the provided facility for advanced uses. For example typing errors in the interface name can not be detected by checking against the list of installed interfaces, because it is possible for a pcmcia card with the name given to be inserted later. BSD
April 16, 2010 BSD
All times are GMT -4. The time now is 02:41 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy