Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Need to setup LAN
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
L1nux
Tux's lil' helper
Tux's lil' helper


Joined: 06 Jan 2004
Posts: 143

PostPosted: Sun Mar 14, 2004 11:27 am    Post subject: Need to setup LAN Reply with quote

HI there, am using gentoo 1.4 on PIII and i want to make a network with my second PC which runs WIN2k, what i need is to tell me what is the general steps to setup my network, i want to connect the 2 pc's through 2 ethernet cards, and want gentoo to be the server.

if any one finds a link that describes the setup, please reply.

thanks alot
Back to top
View user's profile Send private message
Earthwings
Bodhisattva
Bodhisattva


Joined: 14 Apr 2003
Posts: 7753
Location: Germany

PostPosted: Sun Mar 14, 2004 11:41 am    Post subject: Reply with quote

Plug in the cables and you have a network. Tell us what you want exactly and please, do some readings/searching on your own.
Back to top
View user's profile Send private message
hermes_jr
l33t
l33t


Joined: 26 Feb 2004
Posts: 701
Location: Moscow, Russia

PostPosted: Sun Mar 14, 2004 12:44 pm    Post subject: Reply with quote

Hrm... an answer is like a question... no details :wink:
First you have to connect computers...
http://www.jimthompson.net/xphome/Two_Computers.htm (Option 1. Cross-over cable.)
http://www.kelsoconsultinggroup.com/pcguidebook/homenetwork.asp
Then you have to configure network...
http://www.gentoo.org/doc/en/handbook/handbook.xml?part=1&chap=3 (3. Configuring your Network)
http://www.gentoo.org/doc/en/handbook/handbook.xml?part=1&chap=8 (8.b. Networking Information)
And then... hmm... then... for example setup shares
http://www.gentoo.org/doc/en/desktop.xml#doc_chap7 (7. Samba)
Enjoy :D
Back to top
View user's profile Send private message
L1nux
Tux's lil' helper
Tux's lil' helper


Joined: 06 Jan 2004
Posts: 143

PostPosted: Sun Mar 14, 2004 6:53 pm    Post subject: Reply with quote

Hi there, i did the plug, and when i rn ifconfig everthing is all right, on the windows side, running ipconfig gives my an ip, from linux i ping that ip i have unreachable network, so how to configure them.

what i need is to learn how to test exploits on my system (windows) so what is the right configuration to do that so


thx
Back to top
View user's profile Send private message
hermes_jr
l33t
l33t


Joined: 26 Feb 2004
Posts: 701
Location: Moscow, Russia

PostPosted: Sun Mar 14, 2004 7:18 pm    Post subject: Reply with quote

Hehe... another hacker :lol:
I don't remember what exactly should you do in windows, but try to set next:
Gentoo box:
(net-setup or ifconfig...)
IP: 198.162.0.1
netmask: 255.255.255.0
Windows box:
(right click on Local Area Network, right click on your connection)
IP: 198.162.0.2
mask: 255.255.255.0
That's all... After that both machines should ping each other. They call it LAN :lol:
Back to top
View user's profile Send private message
Earthwings
Bodhisattva
Bodhisattva


Joined: 14 Apr 2003
Posts: 7753
Location: Germany

PostPosted: Sun Mar 14, 2004 7:33 pm    Post subject: Reply with quote

hermes_jr wrote:
Hehe... another hacker :lol:

s/hacker/cracker
Back to top
View user's profile Send private message
L1nux
Tux's lil' helper
Tux's lil' helper


Joined: 06 Jan 2004
Posts: 143

PostPosted: Tue Mar 16, 2004 3:45 pm    Post subject: Reply with quote

Hi there, i pulged and set the ips but when pinging i have no reply

thats my gentoo/W2k Configuration:

Windows 2000 IP Configuration



Ethernet adapter Local Area Connection:



Connection-specific DNS Suffix . :

Autoconfiguration IP Address. . . : 192.168.0.5

Subnet Mask . . . . . . . . . . . : 255.255.255.0

Default Gateway . . . . . . . . . :


*******************************************************************************************************

eth0 Link encap:Ethernet HWaddr 00:50:BA:8E:79:71
inet addr:192.168.0.2 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::250:baff:fe8e:7971/10 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3 errors:0 dropped:0 overruns:0 frame:0
TX packets:535 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:180 (180.0 b) TX bytes:38480 (37.5 Kb)
Interrupt:11 Base address:0x7000



and when i ping from any pc to the another i have unreachable host,

any info

thanks alot,
Back to top
View user's profile Send private message
L1nux
Tux's lil' helper
Tux's lil' helper


Joined: 06 Jan 2004
Posts: 143

PostPosted: Tue Mar 16, 2004 7:29 pm    Post subject: Reply with quote

Hi there, since no one answered my question, i will post more data may one can solve,

When i ping the w2k pc (192.168.0.5) i have the following
PING 192.168.0.5 (192.168.0.5) 56(84) bytes of data.
From 192.168.0.2 icmp_seq=1 Destination Host Unreachable
From 192.168.0.2 icmp_seq=2 Destination Host Unreachable
From 192.168.0.2 icmp_seq=3 Destination Host Unreachable
From 192.168.0.2 icmp_seq=4 Destination Host Unreachable
From 192.168.0.2 icmp_seq=5 Destination Host Unreachable
From 192.168.0.2 icmp_seq=6 Destination Host Unreachable
From 192.168.0.2 icmp_seq=7 Destination Host Unreachable
From 192.168.0.2 icmp_seq=8 Destination Host Unreachable
From 192.168.0.2 icmp_seq=9 Destination Host Unreachable
From 192.168.0.2 icmp_seq=10 Destination Host Unreachable
From 192.168.0.2 icmp_seq=11 Destination Host Unreachable
From 192.168.0.2 icmp_seq=12 Destination Host Unreachable
From 192.168.0.2 icmp_seq=13 Destination Host Unreachable
From 192.168.0.2 icmp_seq=14 Destination Host Unreachable
From 192.168.0.2 icmp_seq=15 Destination Host Unreachable

--- 192.168.0.5 ping statistics ---
16 packets transmitted, 0 received, +15 errors, 100% packet loss, time 15019ms
, pipe 3


my /etc/hosts is :
127.0.0.1 localhost
127.0.0.1 L1nuxWorld
192.168.0.5 L1nux-pc.L1nuxWorld L1nux-pc

my /etc/hostname is :
L1nuxWorld

my /etc/resolv.conf is :
namserver 127.0.0.1
nameserver 217.144.6.5
nameserver 217.144.6.6

and my /etc/conf.d/net is:
# This is basically the ifconfig argument without the ifconfig $iface
#
iface_eth0="192.168.0.10 broadcast 192.168.0.255 netmask 255.255.255.0"
#iface_eth1="207.170.82.202 broadcast 207.0.255.255 netmask 255.255.0.0"
gateway="eth0/192.168.0.1"

i showed the uncommeted lines!!

i wish some1 may help

thanks alot,
Back to top
View user's profile Send private message
L1nux
Tux's lil' helper
Tux's lil' helper


Joined: 06 Jan 2004
Posts: 143

PostPosted: Thu Mar 18, 2004 4:43 am    Post subject: Reply with quote

Hi there, i have a second problem that when i connect ot the internet i cant browse anything and this happens also if i browse through ip of the site { Not a DNS problem} so what it is the problem??
Back to top
View user's profile Send private message
merclude
Tux's lil' helper
Tux's lil' helper


Joined: 29 Jan 2004
Posts: 85
Location: Michigan

PostPosted: Thu Mar 18, 2004 5:19 am    Post subject: Reply with quote

sounds like you need to setup NAT (network address translation) on whatever is connected to your modem (box/switch/whatever), essentially, this will share your internet connection..
_________________
-merc
my site: http://escalated.net
Back to top
View user's profile Send private message
L1nux
Tux's lil' helper
Tux's lil' helper


Joined: 06 Jan 2004
Posts: 143

PostPosted: Thu Mar 18, 2004 5:33 am    Post subject: Reply with quote

Hi there, i figured what is the problem to the internet connection, when i was setting my network configuration i used this:
route add default gw 192.168.0.2
where 192.168.0.2 is my linux box ip

but when i connect to the internet through my linux box and afer connecting i use:
route add default gw ${my current internet ip}

it works and i can access internet,

so how can i avoid using my internet ip (which is dynamic) everytime i connect ot the internet.

for my network i will try to solve the problem later.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum