April 27, 2024, 11:08:59 AM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: Connection Sharing  (Read 4685 times)

Offline starmonche

  • Linux Noob !
  • *
  • Posts: 6
Connection Sharing
« on: January 21, 2005, 08:48:30 PM »
i have 3 boxes connected directly to my router. one is a slack box with two ethernet cards that has an xp box connected with a crossover. the xp box behind my slack box has internet access but cannot see the other comps on my lan (and vice-versa). i suppose i could connect a hub to my router and plug said xp and slack boxes into it but i'd like to get my setup working fully as is. any suggestions?

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
Slackware and windows XP networking with router
« Reply #1 on: January 23, 2005, 08:45:24 AM »
umm..
You said you are unable to see other computer on xp box.. b'coz that is on another LAN :)
to see other box in that you have to do bridging !
That can be done on Slackware box.

for bridgin there are few methods available.. do a search on google.com/linux

Offline starmonche

  • Linux Noob !
  • *
  • Posts: 6
Slackware and windows XP networking with router
« Reply #2 on: January 23, 2005, 04:52:54 PM »
Ah, so "bridge" is the word I was looking for. I read up on it and it makes sense. One thing I left out, though, is that my Slack box is a webserver and the documentation I'm reading seems to be saying that my slack box will simply connect the two networks together by "giving" one NIC card to each network. Is this getting too sloppy?

Offline starmonche

  • Linux Noob !
  • *
  • Posts: 6
Slackware and windows XP networking with router
« Reply #3 on: January 23, 2005, 06:49:37 PM »
i hate googling for something and finding a forum discussing my problem without it listing a solution:

--------------------------------
brctl addbr bridgename
brctl addif bridgename eth0
brctl addif bridgename eth1
ifconfig eth0 0.0.0.0
ifconfig eth1 0.0.0.0
ifconfig bridgename [ip address] netmask 255.255.255.0 up

[taken from http://www.linux.com/howtos/BRIDGE-STP-HOWTO/set-up-the-bridge.shtml
]
--------------------------------

this works and both my xp box and slack box have 'net and lan access.

only remaining issue is that i'm unable to see the web site on my slack box unless i navigate to its local ip. (my router fwds port 80 to the slack box and it works fine if i undo the bridge).

Offline starmonche

  • Linux Noob !
  • *
  • Posts: 6
Slackware and windows XP networking with router
« Reply #4 on: January 23, 2005, 08:41:27 PM »
sorry for the flood...i figured it out:

route add default gw x.x.x.x bridgename

where x.x.x.x is your router's ip

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
Slackware and windows XP networking with router
« Reply #5 on: January 24, 2005, 08:23:53 AM »
Hmm.. ya you have really flooded.. so now on what I can help you!