I have already to set the 192.168.1.1 as the getway with no success as far as the ip 192.168.1.1 is not pingable (from a networked winpc). The WinNt which acts as a file server owns the 192.168.1.2 Any ideas? Óôßò Mon, 29 Dec 2003 09:16:16 -0500 Jerry Feldman Ýãñáøå:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Mon, 29 Dec 2003 11:18:10 EET pseep@mail.gr wrote:
i gave route -en
Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
Since you are running a private network, the gateway address is the IP address of the system on your network that has the connection to the outside world. If you have a cable modem router, it's address is probably 192.168.1.1.
While you should use YaST to set the parameters, you can add a line to the routing table (as root): route add 0 gw 192.168.1.1
This will set up your default route. It is normally set up automatically on boot. If you have a static IP address on your system, then you must specify the default gateway. If you have a dynamic address, then dhcp should set it up for you.
One caveat. I noticed on SuSE 8.2 on my laptop that when I used both my built-in ethernet connection and my wireless connection, I got a routing table as above, but this seems to be fixed in 9.0 although I now use profiles.
- -- Jerry Feldman
Boston Linux and Unix user group http://www.blu.org PGP key id:C5061EA9 PGP Key fingerprint:053C 73EC 3AC1 5C44 3E14 9245 FB00 3ED5 C506 1EA9 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux) iD8DBQE/8Dcw+wA+1cUGHqkRAmomAJ9r4p8hbGvtrecWDRAwDnErRkwIDACeKf6G On7+T6xLpcP8LHaKTHIrar4= =CLxo -----END PGP SIGNATURE-----
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
------------------------------------------------------------- http://www.mail.gr/ - Get Your Private Free Email Address! http://www.ringtone.gr/ - Ringtones & Logos for your mobile!
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Your gateway is the box that has the NIC for the outside world, and it may not be 192.168.1.1. In some cases, the gateway may be the cable modem. You need to give us all the details of your network. Here is a typical home network: - ----Cable modem or DSL-----| router or PC with multiple NICS| | | | PC PC PC... | +---------------IP address is local, gateway is the router. The first question, can you ping the NT box from the Linux box. Secondly, can you ping the linux box from NT. If either one of these are successful, then we can establish that the NIC and switch are working. (Most switches will handle both full and half duplex where hubs are only half duplex). Once you have established that the switch and NIC are working correctly, then let's figure out what you are using for a gateway: What type of system is connected to the outside world: That system must be connected to the switch and have an IP address 192.168.1.X. That would be your gateway. On Mon, 29 Dec 2003 18:26:23 EET pseep@mail.gr wrote:
I have already to set the 192.168.1.1 as the getway with no success as far as the ip 192.168.1.1 is not pingable (from a networked winpc).
The WinNt which acts as a file server owns the 192.168.1.2
- --
Jerry Feldman
If 192.168.1.2 (the NT) is the box is the one connected to the outside world, then "route add default gw 192.168.1.2" on the .251 box. "route -n" should show 0.0.0.0 192.168.1.2 0.0.0.0 UG 0 0 0 eth0 You would also need to set up the gateway machine to forward packets, otherwise you won't be able to get anything in or out. There should also be a nameserver in /etc/resolv.conf nameserver 192.168.1.2 (or other address if you know of an external nameserver). If the NT box was set up by a cable/DSL company, there should be less to do with it. Can't help you on NT as I'm not Microsoft literate. Regards Sid. Jerry Feldman wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Your gateway is the box that has the NIC for the outside world, and it may not be 192.168.1.1. In some cases, the gateway may be the cable modem. You need to give us all the details of your network. Here is a typical home network:
- ----Cable modem or DSL-----| router or PC with multiple NICS| | | | PC PC PC... | +---------------IP address is local, gateway is the router.
The first question, can you ping the NT box from the Linux box. Secondly, can you ping the linux box from NT.
If either one of these are successful, then we can establish that the NIC and switch are working.
(Most switches will handle both full and half duplex where hubs are only half duplex).
Once you have established that the switch and NIC are working correctly, then let's figure out what you are using for a gateway: What type of system is connected to the outside world: That system must be connected to the switch and have an IP address 192.168.1.X. That would be your gateway.
On Mon, 29 Dec 2003 18:26:23 EET pseep@mail.gr wrote:
I have already to set the 192.168.1.1 as the getway with no success as far as the ip 192.168.1.1 is not pingable (from a networked winpc).
The WinNt which acts as a file server owns the 192.168.1.2
- -- Jerry Feldman
Boston Linux and Unix user group http://www.blu.org PGP key id:C5061EA9 PGP Key fingerprint:053C 73EC 3AC1 5C44 3E14 9245 FB00 3ED5 C506 1EA9 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux) iD8DBQE/8I7P+wA+1cUGHqkRAgZcAJ9WAjvUrHDR0rH9IZKFtg/Ludt+uACfUrvA 6PBah2yjKHZejDrQvZ2W2to= =AMMA -----END PGP SIGNATURE-----
-- Sid Boyce .... Hamradio G3VBV and keen Flyer Linux Only Shop.
I think it would be good for you to have your box connected to the internet first. For my box i have two network cards, one is connected to the dsl model (eth0) and 2nd is to a hub for internet network (eth1). eth0 should use the gateway and ip that is provided by your provider eth1 should be 192.168.x.x. for ip I use 192.168.1.1 and gateway should be the same as eth0. Get eth0 to connect to world before you do your lan. To get lan going you will need to configure routing and firewall for masquerading. henry On Mon, 29 Dec 2003, Sid Boyce wrote:
If 192.168.1.2 (the NT) is the box is the one connected to the outside world, then "route add default gw 192.168.1.2" on the .251 box. "route -n" should show
0.0.0.0 192.168.1.2 0.0.0.0 UG 0 0 0 eth0 You would also need to set up the gateway machine to forward packets, otherwise you won't be able to get anything in or out. There should also be a nameserver in /etc/resolv.conf nameserver 192.168.1.2 (or other address if you know of an external nameserver). If the NT box was set up by a cable/DSL company, there should be less to do with it. Can't help you on NT as I'm not Microsoft literate. Regards Sid.
Jerry Feldman wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Your gateway is the box that has the NIC for the outside world, and it may not be 192.168.1.1. In some cases, the gateway may be the cable modem. You need to give us all the details of your network. Here is a typical home network:
- ----Cable modem or DSL-----| router or PC with multiple NICS| | | | PC PC PC... | +---------------IP address is local, gateway is the router.
The first question, can you ping the NT box from the Linux box. Secondly, can you ping the linux box from NT.
If either one of these are successful, then we can establish that the NIC and switch are working.
(Most switches will handle both full and half duplex where hubs are only half duplex).
Once you have established that the switch and NIC are working correctly, then let's figure out what you are using for a gateway: What type of system is connected to the outside world: That system must be connected to the switch and have an IP address 192.168.1.X. That would be your gateway.
On Mon, 29 Dec 2003 18:26:23 EET pseep@mail.gr wrote:
I have already to set the 192.168.1.1 as the getway with no success as far as the ip 192.168.1.1 is not pingable (from a networked winpc).
The WinNt which acts as a file server owns the 192.168.1.2
- -- Jerry Feldman
Boston Linux and Unix user group http://www.blu.org PGP key id:C5061EA9 PGP Key fingerprint:053C 73EC 3AC1 5C44 3E14 9245 FB00 3ED5 C506 1EA9 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux) iD8DBQE/8I7P+wA+1cUGHqkRAgZcAJ9WAjvUrHDR0rH9IZKFtg/Ludt+uACfUrvA 6PBah2yjKHZejDrQvZ2W2to= =AMMA -----END PGP SIGNATURE-----
-- Sid Boyce .... Hamradio G3VBV and keen Flyer Linux Only Shop.
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
participants (4)
-
Henry Tang
-
Jerry Feldman
-
pseep@mail.gr
-
Sid Boyce