Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

Setting up a simple network

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
5 posts • Page 1 of 1
Author
Message
EmptyDoor
n00b
n00b
Posts: 22
Joined: Fri Oct 08, 2004 7:41 pm
Location: Bergen, Norway
Contact:
Contact EmptyDoor
Website

Setting up a simple network

  • Quote

Post by EmptyDoor » Sat Dec 16, 2006 10:54 pm

I am trying to set up a simple network between a few computers.

I have connected the hub to two PCs, and configured the two with static network settings.

IP: 192.168.0.2/3
Broadcast: 192.168.0.7
Netmask: 255.255.255.248

But they can't communicate with each other. I have tried other network settings; I even configured a DHCP server on one of them, but they simply can't find each other.

What do I need to do? I don't need Internet on the network; it is simply for playing games.
Was it a box?
Top
mahdi1234
Guru
Guru
Posts: 559
Joined: Sat Feb 19, 2005 6:40 pm
Location: Being There

  • Quote

Post by mahdi1234 » Sat Dec 16, 2006 11:19 pm

First, not that it should matter that much, do you really have hub or a switch?

When you say they cannot find each other, do you just try ping each other or what do you do exactly?
Top
EmptyDoor
n00b
n00b
Posts: 22
Joined: Fri Oct 08, 2004 7:41 pm
Location: Bergen, Norway
Contact:
Contact EmptyDoor
Website

  • Quote

Post by EmptyDoor » Sat Dec 16, 2006 11:33 pm

I connect both PCs to the hub, then I put the network settings in /etc/conf.d/net, run /etc/init.d/net.eth0 start and then make the PCs ping each other, but they never get a response, only 'destination host unreachable'. I have tried specifying the interface with the ping -I option.
Was it a box?
Top
Aurisor
Guru
Guru
User avatar
Posts: 361
Joined: Sat Sep 20, 2003 7:52 am
Location: Boston MA
Contact:
Contact Aurisor
Website

  • Quote

Post by Aurisor » Sun Dec 17, 2006 12:56 am

Can you post the output of /sbin/ifconfig from both machines?

Are you sure both machines are plugged in properly? (and are you sure that you didn't do something dumb like plug one into the uplink port or something)?

Did you check the output of dmesg or tail /var/log/messages for anything suspicious?
Top
EmptyDoor
n00b
n00b
Posts: 22
Joined: Fri Oct 08, 2004 7:41 pm
Location: Bergen, Norway
Contact:
Contact EmptyDoor
Website

  • Quote

Post by EmptyDoor » Sun Dec 17, 2006 1:36 am

Ehh . . . I had forgotten that one of the PCs had two wired network cards . . .
Sorry, I feel like a complete idiot.


Now I am trying to configure one of the PCs as a router to supply the wireless-provided Internet to the rest of the network.

eth0="192.168.1.1 netmask 255.255.255.0 broadcast 192.168.1.255"

/etc/dhcp/dhcpd.conf
ddns-update-style ad-hoc;

subnet 192.168.1.0 netmask 255.255.255.0 {
option routers 192.168.1.1;
option subnet-mask 255.255.255.0;
option domain-name-servers 217.13.4.24;
range dynamic-bootp 192.168.1.16 192.168.1.253;
default-lease-time 21600;
max-lease-time 43200;
}

I have connected the router machine with a two-way cable to the hub's uplink port, but the other PC does not get a DHCP response.
Was it a box?
Top
Post Reply

5 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic