LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 02-14-2013, 04:11 AM   #16
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 2,913

Original Poster
Rep: Reputation: 45

Quote:
Originally Posted by Poucket View Post
What was your gateway for the route command? Or were you setting a route to B?
route add default gw 192.168.1.1 (this IP is A).
 
Old 02-14-2013, 04:11 AM   #17
WiseDraco
Member
 
Registered: Nov 2006
Location: Europe,Latvia,Riga
Distribution: slackware,slax, exMandriva
Posts: 358

Rep: Reputation: 28
Quote:
Originally Posted by Poucket View Post
What was your gateway for the route command? Or were you setting a route to B?
in that etap route not need at all, i think, because in "internal network" is no further going \ routes.
gateway is need only if it must be routing via networks \ going to internet from machine B...
 
Old 02-14-2013, 04:39 AM   #18
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 2,913

Original Poster
Rep: Reputation: 45
Quote:
Originally Posted by WiseDraco View Post
what you want next? i think, it is goal, who you want - network connection between these two machines.
if you need also internet on one of your machines in the same time ( says, on machine A), then
go on /etc/rc.d/rc.local on that machine and write in rc.local new string with /sbin/ifconfig eth0:0 192.168.0.1 netmask 255.255.255.0

in machine B on /etc/rc.d/rc.inet1.conf writes ip 192.168.0.2 and gw 192.168.0.1

in that example means, a internet ( with modem and so) is always connect to machine A.
after reboot both machines you must going to internet from machine A, and ping from A to B, ant vice versa...
it is any another things, who you want?
First, to thank you for your nice posts. Secondly, it seems to me the modem is really a modem-router because I am having internet through the switch! However, B machine gave errors when booting. I got
Quote:
Object "192.168.0.2" is unknown, try ip help
Maybe it is 192.168.1.2?

EDIT: on the other hand I have no gw on either 12.0 or 14.0.

Last edited by stf92; 02-14-2013 at 04:47 AM.
 
Old 02-14-2013, 04:48 AM   #19
WiseDraco
Member
 
Registered: Nov 2006
Location: Europe,Latvia,Riga
Distribution: slackware,slax, exMandriva
Posts: 358

Rep: Reputation: 28
Quote:
Originally Posted by stf92 View Post
First, to thank you for your nice posts. Secondly, it seems to me the modem is really a modem-router because I am having internet through the switch! However, B machine gave errors when booting. I got
Maybe it is 192.168.1.2?
maybe. it do not remember your adressing, first three digit groups must be the same on both machines, if your netmask is 255.255.255.0 i e on both machines you must be 192.168.0.x or or 192.168.1.x, not mixed.
about internet via switch - as i tell you agree, switch is transparent network device. no matter, your modem is connected to your ethernet port on computer, or via switch - it is be same thing, as so, there is no "modem router".
modem can be router if you can distribute internet from it to all your local computerts at the same time, on whole internal network. but as i understand, your router cannot be configured to have "lowered" address like 192.168.x.x and distribute internet access from that whole network...

gw on this stage not necessary, except that one, who goes from dhcp for machine connected to modem, and need in that case, for internet on it is working.

Last edited by WiseDraco; 02-14-2013 at 04:49 AM.
 
Old 02-14-2013, 04:52 AM   #20
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 2,913

Original Poster
Rep: Reputation: 45
As to the gw command, I think you have made a typo. It is not in slackaware 14.0. What does it do?
 
Old 02-14-2013, 04:57 AM   #21
Poucket
Member
 
Registered: Dec 2012
Location: California
Distribution: Slackware 14.1
Posts: 36

Rep: Reputation: Disabled
Quote:
Originally Posted by stf92 View Post
What does it do?
gw is not a command. Correct. gw is an optional argument to route.
 
Old 02-14-2013, 05:09 AM   #22
WiseDraco
Member
 
Registered: Nov 2006
Location: Europe,Latvia,Riga
Distribution: slackware,slax, exMandriva
Posts: 358

Rep: Reputation: 28
Quote:
Originally Posted by stf92 View Post
As to the gw command, I think you have made a typo. It is not in slackaware 14.0. What does it do?
nothing to do. it be automatic, as before that ( as i understand, your modem is working with your linux box, and internet is already working?)
 
Old 02-14-2013, 05:12 AM   #23
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 2,913

Original Poster
Rep: Reputation: 45
Yes, internet working in A. Now, what is the syntax for 'route' in /etc/rc.d/rc.inet1.conf? I am at one inch of success.

Last edited by stf92; 02-14-2013 at 05:21 AM.
 
Old 02-14-2013, 05:17 AM   #24
Poucket
Member
 
Registered: Dec 2012
Location: California
Distribution: Slackware 14.1
Posts: 36

Rep: Reputation: Disabled
from man route(8):

Quote:
If you specify the address of one of your local interfaces, it will be used to
decide about the interface to which the packets should be routed to.
That might be what you have done with the gw argument.

Last edited by Poucket; 02-14-2013 at 05:18 AM.
 
1 members found this post helpful.
Old 02-14-2013, 05:46 AM   #25
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 2,913

Original Poster
Rep: Reputation: 45
Up to now I have done, in A:

# ifconf eth0 192.168.1.1 netmask 255.255.255.0
# route add default gw 192.168.1.1
Then in etc/rc.d/rc.local, I added line
/sbin/ifconfig eth0:0 192.168.0.1 netmask 255.255.255.0

Here A takes either 192.168.0.1 or 192.168.1.1 without complaining.

In B:
# ifconf eth0 192.168.1.2 netmask 255.255.255.0
Then in /etc/rc.d/rc.inet1.conf, I added line
ip 192.168.0.2

Here 'ip 192.168.0.2' and 'ip 192.168.1.2' both give errors.

Booted both A and B and I had internet in A. It's a pity such a good track I had at last found is really a dead end, though not your fault, of course. Anyway, to have understood that the switch is really transparent, in the same way as a splitter, is a very good thing. Of course, I can't now ping.
 
1 members found this post helpful.
Old 02-14-2013, 05:46 AM   #26
WiseDraco
Member
 
Registered: Nov 2006
Location: Europe,Latvia,Riga
Distribution: slackware,slax, exMandriva
Posts: 358

Rep: Reputation: 28
Quote:
Originally Posted by stf92 View Post
Yes, internet working in A. Now, what is the syntax for 'route' in /etc/rc.d/rc.inet1.conf? I am at one inch of success.
in /etc/rc.d/rc.inet1.conf conf on machine B write address, who you given in aliase ( eth0:0) for machine A. but link between A and B works also without that.
 
Old 02-14-2013, 05:51 AM   #27
WiseDraco
Member
 
Registered: Nov 2006
Location: Europe,Latvia,Riga
Distribution: slackware,slax, exMandriva
Posts: 358

Rep: Reputation: 28
Quote:
Originally Posted by stf92 View Post
Up to now I have done, in A:

# ifconf eth0 192.168.1.1 netmask 255.255.255.0
# route add default gw 192.168.1.1
Then in etc/rc.d/rc.local, I added line
/sbin/ifconfig eth0:0 192.168.0.1 netmask 255.255.255.0

Here A takes either 192.168.0.1 or 192.168.1.1 without complaining.

In B:
# ifconf eth0 192.168.1.2 netmask 255.255.255.0
Then in /etc/rc.d/rc.inet1.conf, I added line
ip 192.168.0.2

Here 'ip 192.168.0.2' and 'ip 192.168.1.2' both give errors.

Booted both A and B and I had internet in A. It's a pity such a good track I had at last found is really a dead end, though not your fault, of course. Anyway, to have understood that the switch is really transparent, in the same way as a splitter, is a very good thing. Of course, I can't now ping.
oh, mai god!

machine A is with internet. do it in A:
in etc/rc.d/rc.local, I added line
/sbin/ifconfig eth0:0 192.168.0.1 netmask 255.255.255.0


in machine B do:
in /etc/rc.d/rc.inet1.conf

# Config information for eth0:
IPADDR[0]="192.168.0.2"
NETMASK[0]="255.255.255.0"
USE_DHCP[0]=""
DHCP_HOSTNAME[0]=""


# Default gateway IP address:
GATEWAY="192.168.0.1"

then, restart both. after restart all must be worked.
 
1 members found this post helpful.
Old 02-14-2013, 06:03 AM   #28
Poucket
Member
 
Registered: Dec 2012
Location: California
Distribution: Slackware 14.1
Posts: 36

Rep: Reputation: Disabled
Quote:
Originally Posted by WiseDraco View Post
oh, mai god!

machine A is with internet. do it in A:
in etc/rc.d/rc.local, I added line
/sbin/ifconfig eth0:0 192.168.0.1 netmask 255.255.255.0


in machine B do:
in /etc/rc.d/rc.inet1.conf

# Config information for eth0:
IPADDR[0]="192.168.0.2"
NETMASK[0]="255.255.255.0"
USE_DHCP[0]=""
DHCP_HOSTNAME[0]=""


# Default gateway IP address:
GATEWAY="192.168.0.1"

then, restart both. after restart all must be worked.
And cross your fingers. It also helps.

Last edited by Poucket; 02-14-2013 at 06:10 AM.
 
Old 02-14-2013, 06:11 AM   #29
WiseDraco
Member
 
Registered: Nov 2006
Location: Europe,Latvia,Riga
Distribution: slackware,slax, exMandriva
Posts: 358

Rep: Reputation: 28
Quote:
Originally Posted by Poucket View Post
And cross your fingers. It also helps.

do not think so. it may help in any different cases, but in this is all are very,very basic and simple.
there is not need to cross fingers to get work that things, imho
 
Old 02-14-2013, 06:15 AM   #30
Poucket
Member
 
Registered: Dec 2012
Location: California
Distribution: Slackware 14.1
Posts: 36

Rep: Reputation: Disabled
Quote:
Originally Posted by WiseDraco View Post
in /etc/rc.d/rc.inet1.conf conf on machine B write address, who you given in aliase ( eth0:0) for machine A. but link between A and B works also without that.
Will machine B also have internet through the alias?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
giving SSH access to machines on LAN from internet tkmsr Linux - Server 4 03-09-2011 02:16 AM
Ubuntu server cannot access internet but LAN machines can. librano Linux - Server 2 05-13-2007 01:17 PM
LAN machines unable to connect to Internet through (firewall on )gateway nishi_k_79 Linux - Security 1 11-13-2003 01:30 PM
ssh to multiple lan machines from the internet - How? v00d00101 Linux - Newbie 4 06-20-2003 01:39 PM
Enabling Slackware Configuration on Network Machines deesto Slackware 5 12-21-2002 11:57 PM


All times are GMT -5. The time now is 04:41 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration