LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-19-2004, 07:11 PM   #1
spinal
LQ Newbie
 
Registered: May 2004
Posts: 3

Rep: Reputation: 0
Using 2 network cards in Slackware 9.1


Ahoy Hoy,

I've recently installed Slackware 9.1 onto my PC, i've managed to get pretty much everything i need up and running (yay for me!!) but i've stumbled upon a bit of a problem.

I've got 2 NIC's in my PC, one (eth0) is connected to my router (as i share an internet connection with my flatmate) and is working fine. The other (eth1) i use to connect to my XBOX.

I can't seem to find out how you tell a program to use eth1 instead of eth0, which means i can't FTP onto my xbox to transfer files, it also means i can't stream over media to it, which is a ball ache since that's what it's used most for.

The way it works (or how it did under windows) is that the xbox has a static IP of 192.168.0.5, with the netmask at 255.255.255.0 and the default gateway of 192.168.0.4. (which is the IP address of my eth1). This then allowed you to FTP to the xbox, and to stream media files to it.

i'll list some random network config files, in case it helps.....

Code:
00:00.0 Host bridge: VIA Technologies, Inc. VT8363/8365 [KT133/KM133] (rev 03)
00:01.0 PCI bridge: VIA Technologies, Inc. VT8363/8365 [KT133/KM133 AGP]
00:07.0 ISA bridge: VIA Technologies, Inc. VT82C686 [Apollo Super South] (rev 40)
00:07.1 IDE interface: VIA Technologies, Inc. VT82C586/B/686A/B PIPC Bus Master IDE (rev 06)
00:07.2 USB Controller: VIA Technologies, Inc. USB (rev 1a)
00:07.3 USB Controller: VIA Technologies, Inc. USB (rev 1a)
00:07.4 Bridge: VIA Technologies, Inc. VT82C686 [Apollo Super ACPI] (rev 40)
00:07.5 Multimedia audio controller: VIA Technologies, Inc. VT82C686 AC97 Audio Controller (rev 50)
00:09.0 Ethernet controller: Accton Technology Corporation SMC2-1211TX (rev 10)
00:0b.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
01:00.0 VGA compatible controller: ATI Technologies Inc Radeon R250 If [Radeon 9000] (rev 01)
Code:
eth0      Link encap:Ethernet  HWaddr 00:10:B5:E6:78:DA
          inet addr:192.168.0.3  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST NOTRAILERS RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2873 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3049 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:1661433 (1.5 Mb)  TX bytes:416326 (406.5 Kb)
          Interrupt:10 Base address:0xa000
 
eth1      Link encap:Ethernet  HWaddr 00:50:22:83:7E:CD
          inet addr:192.168.0.4  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:9 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:0 (0.0 b)  TX bytes:540 (540.0 b)
          Interrupt:11 Base address:0xc000
 
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:430 errors:0 dropped:0 overruns:0 frame:0
          TX packets:430 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:21768 (21.2 Kb)  TX bytes:21768 (21.2 Kb)
If anything else might be useful, let me know.

or if you can help me, i've been loving the rest of slackware, this is driving me a little insane! and i'll appreciate it
 
Old 05-19-2004, 07:37 PM   #2
atlesn
Member
 
Registered: Oct 2003
Location: Oslo, Norway
Distribution: RedHat 9.0, Fedora Core 1/2/3, Debian 3.0, Smoothwall
Posts: 110

Rep: Reputation: 15
Try

# route add 192.168.0.5 netmask 255.255.255.255 dev eth1

This shoud tell your slack-box where the x-box is
 
Old 05-20-2004, 12:14 PM   #3
spinal
LQ Newbie
 
Registered: May 2004
Posts: 3

Original Poster
Rep: Reputation: 0
you my friend, are stupendous!


only problem i had was that trying to add a netmask brought up an error (possibly due to the distro i'm using??) so i just used: route 192.168.0.5 dev eth1 when logged in as route, opened up gFTP, put in the IP of my xbox and it connected straight away......


so much faster transfer times than windows too, is there any benefits to windows over linux?!


anyways, thanks for the prompt and efficent help, I owe you a pint or two.........
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
two network cards in slackware 10.2 caghiebe Linux - Networking 6 12-02-2005 11:16 AM
2 network cards, single network, load balancing? tormentum Linux - Networking 1 02-13-2005 03:37 PM
two network cards - one for local network, one for http/vsftpd server scottster Linux - Networking 1 01-20-2005 09:52 PM
Setting up Slackware 9.1 to use multiple network cards? Lynx2112 Slackware 7 06-10-2004 06:52 PM
slackware and network cards jeempc Slackware 3 11-09-2003 12:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:14 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration