You are not logged in.
Pages: 1
hey there,
ok, i have Arch connected to the net via cable modem and eth0. i also have a laptop that i want to connect to the net thru this computer. It runs windows2000 and i have been searching forums for a while now and i need some more help.
i have two ethernet cards in this computer. My ifconfig reads
eth0 Link encap:Ethernet HWaddr 00:50:BF:93:D0:81
inet addr:69.92.12.105 Bcast:255.255.255.255 Mask:255.255.255.0
inet6 addr: fe80::250:bfff:fe93:d081/64 Scope:Link
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
RX packets:35778 errors:0 dropped:0 overruns:0 frame:0
TX packets:1883 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3642648 (3.4 Mb) TX bytes:239876 (234.2 Kb)
Interrupt:10 Base address:0xa800
eth1 Link encap:Ethernet HWaddr 00:09:5B:E1:7E:BA
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::209:5bff:fee1:7eba/64 Scope:Link
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:23 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:2034 (1.9 Kb)
Interrupt:11 Base address:0xc000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:72 errors:0 dropped:0 overruns:0 frame:0
TX packets:72 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3600 (3.5 Kb) TX bytes:3600 (3.5 Kb)
and my rc.conf reads
lo="lo 127.0.0.1"
eth0="dhcp"
eth1="eth1 192.168.1.1 netmask 255.255.255.0 broadcast 192.168.1.255"
INTERFACES=(lo eth0 eth1)
gateway="default gw 192.168.0.1"
ROUTES=(!gateway)
i want to be able to do file share, internet share and such but cant seem to get this hooked up right. i am using a crossover cable from eth1 on this box to the ethernet card on the laptop.
i am stumped, i installed iptables, but dont know what to do with it. i am not interested in a firewall right now, maybe later. i just want to get this stuff hooked up.
any pointers? thanks much
Offline
First you need to setup you Winbox with a 192.168.1.2 ip address. Then setup routing gateway 192.168.1.1. Second, test to see if can you ping you Win box from you linux box? and reverse linux box to Win box? ie: from your win box ping 192.168.1.1 then from you linux box ping 192.168.1.2
I changes on the win box may take a while to activate?
If the above works try accessing a site on the internet from you win box and linux box. Then you can use some wiki doc or man doc to setup samba for file sharing, as I have not used windows for a few years I am not sure how?
I use firestarter for configuring my firewall.
Walt
P4 2.8Ghz @ 2.8Ghz SL6WT
Zalman CNPS7000-Cu
865PE Neo-2 LS BIOs 2.4
512mb Mushkin Level II
160GB Maxtor HD
Geforce 4 440MX
Antec 3700 1 exhaust and 1 intake fans
Linux 2.6.x
Linux user 314187
ArchLinux
Offline
ok, cant ping from linux ( the router ) dont know how to try from windows 2000, havn't used it myself for a few years also.
i installed firestarter, and dont know how to set it up, i went thru the wizzard and seemed easy.
from windows when i try to set up the network connection, it wants me to supply a user name and password to connect to the network. Where do i set up in Firestarter this kind of thing?
thanks for your help,
Offline
In terms of your network, i don't think the setup you want requires a crossover cable. From what i understand, a crossover cable is for connecting two different networks. If you are going to be using the linux box as a router, you should use a regular cable and have it assign IPs on eth1. (The port going to the laptop).
Offline
ok, another question,
when i try to set this up in windows it is not looking for a gateway, i think, it asks for two dns servers (prefered and alternate)
??????
confused a bit.
Offline
i think i do need a crossover cable. the lights on the nic in the linux box and the little lights on the laptop connection went out when i swithched cables to a straight through one.
Offline
shurely you need a crossover cable cuz you connect NIC with NIC :!:
second... on your windoze you have to configure:
eg:
IP: 192.168.0.2
Gateway: 192.168.0.1
DNS: 192.168.0.1
third: ... linux box:
the ethernet for your INTRAnet:
IP: 192.168.0.1
the ethernet for your INTERnet:
(whatever you need to connect to the internet)
till here you should be able to :
Linux ping windoze ... windoze ping linux ... and surfing with linux
now:
in rc.conf add at DEAMONS
iptables BEVORE networking
than go to /etc/conf.d/iptables
there should be a line wich says IP_FORWARDING=0
change 0 to 1
do /etc/rc.d/iptables start
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
-> important!: eth0 if eth0 is the NIC leading to the INTERNET .. if its eth1 than put eth1 there insteat eth0
now you already should be able to ping IP-ADDRESSES in the internet from your windoze-box
additonally you have to set up some DNS-thingie ... pacman -S dnsmasq could do the trick for you... there is a thread on the board about that ... search for dnsmasq
when you have set up that you should be able to surf with windoze
for resource sharing take a look at samba
good luck
Offline
thanks, got it all working now. your awesome.
-cheers
Offline
welcome to ARCH )
Offline
Pages: 1