View previous topic :: View next topic |
Author |
Message |
L1nux Tux's lil' helper
Joined: 06 Jan 2004 Posts: 143
|
Posted: Sun Mar 14, 2004 11:27 am Post subject: Need to setup LAN |
|
|
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 |
|
|
Earthwings Bodhisattva
Joined: 14 Apr 2003 Posts: 7753 Location: Germany
|
Posted: Sun Mar 14, 2004 11:41 am Post subject: |
|
|
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 |
|
|
hermes_jr l33t
Joined: 26 Feb 2004 Posts: 701 Location: Moscow, Russia
|
|
Back to top |
|
|
L1nux Tux's lil' helper
Joined: 06 Jan 2004 Posts: 143
|
Posted: Sun Mar 14, 2004 6:53 pm Post subject: |
|
|
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 |
|
|
hermes_jr l33t
Joined: 26 Feb 2004 Posts: 701 Location: Moscow, Russia
|
Posted: Sun Mar 14, 2004 7:18 pm Post subject: |
|
|
Hehe... another hacker
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 |
|
Back to top |
|
|
Earthwings Bodhisattva
Joined: 14 Apr 2003 Posts: 7753 Location: Germany
|
Posted: Sun Mar 14, 2004 7:33 pm Post subject: |
|
|
hermes_jr wrote: | Hehe... another hacker
|
s/hacker/cracker |
|
Back to top |
|
|
L1nux Tux's lil' helper
Joined: 06 Jan 2004 Posts: 143
|
Posted: Tue Mar 16, 2004 3:45 pm Post subject: |
|
|
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 |
|
|
L1nux Tux's lil' helper
Joined: 06 Jan 2004 Posts: 143
|
Posted: Tue Mar 16, 2004 7:29 pm Post subject: |
|
|
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 |
|
|
L1nux Tux's lil' helper
Joined: 06 Jan 2004 Posts: 143
|
Posted: Thu Mar 18, 2004 4:43 am Post subject: |
|
|
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 |
|
|
merclude Tux's lil' helper
Joined: 29 Jan 2004 Posts: 85 Location: Michigan
|
Posted: Thu Mar 18, 2004 5:19 am Post subject: |
|
|
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 |
|
|
L1nux Tux's lil' helper
Joined: 06 Jan 2004 Posts: 143
|
Posted: Thu Mar 18, 2004 5:33 am Post subject: |
|
|
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 |
|
|
|