Re: Very small network question...



Hello,

to connect two computers directly you need a crossover cable.
If you have something between them (like a switch or hub) you need 'normal'
patch cables. But you could also use the "uplink" port of your hub with a
crossover cable.

Crossover: some wires are crossed
Uplink: the same wires are crossed
Together it works - it is only crossed two times :-)


The gateway question:

You have to set the gateway ONLY if you have a gateway in your network.
Routers may also have gateway functionality. If you don't have one you
mustn't set a gateway in your network settings.

If your computers are in the same subnet (255.255.255.0) on the same ip
range (like your 192.168.50.xxx) you won't use your gateway anyway, so it
doesn't matter if you set one or not. But disable it to be sure.

Generally your network settings seem correct, at least I can't see any
mistake there.

Hope this helps,

Sebastian


<neil650r@xxxxxxxxxxx> schrieb im Newsbeitrag
news:1142103560.449849.324960@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hello group,

I have several questions that someone with more networking experience
may be able to help me with. I am developing an embedded software
application and the target board can use an NFS mount and also download
it's kernel over TFTP (using U-Boot). Normally my set-up is at my work
place so I never see problems. Now I am trying to reproduce something
similar to my work environment at home.

My 'network' looks like this:

- a host PC running SuSE 9.3 with static IP.
- a five port switch (connected to the host PC and target board).
- an Ethernet-enabled target board with a static IP.

With this configuration I have no access to either the Internet or any
other network, just what I describe above.

The output from ifconfig on the host PC looks like this:

eth0 Link encap:Ethernet HWaddr 00:0C:6E:7E:39:49
inet addr:192.168.50.67 Bcast:192.168.50.255
Mask:255.255.255.0
inet6 addr: fe80::20c:6eff:fe7e:3949/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:35 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:5831 (5.6 Kb)
Interrupt:193 Base address:0x4400

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:138 errors:0 dropped:0 overruns:0 frame:0
TX packets:138 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:8987 (8.7 Kb) TX bytes:8987 (8.7 Kb)

I read a posting that gave me the idea to set the gateway to 192.1.1.1
I don't know enough about networking to know if this is sensible but I
tried it
just in case I got lucky (working in limited time on my day off and I
am getting
sort of desperate).

The result I got was:

nbryan@linux:~> ping 192.168.42.31
PING 192.168.42.31 (192.168.42.31) 56(84) bytes of data.
From 192.168.50.67: icmp_seq=2 Destination Host Unreachable
From 192.168.50.67 icmp_seq=2 Destination Host Unreachable
From 192.168.50.67 icmp_seq=3 Destination Host Unreachable
From 192.168.50.67 icmp_seq=4 Destination Host Unreachable
etc..

So, I need a hint or two.

1) Is what I am trying to achieve possible as I am really only using a
point to point
connection from my PC to the target board, via the switch, I expect it
should just 'work'.
I was told by a work colleague that I need the switch *OR* a crossover
cable.
Is this correct?

2) Most of the settings on my host PC I am happy with. Static IP is
local and unlikely to clash with anything else as it is the only thing
connected! Sub-net mask shouldn't make much difference so I used the
default 255.255.255.0. What about DNS which I believe makes no sense
in my configuration. And also the Gateway! This is the only machine on
the network without exteranl Internet access so what would be the role
of a Gateway?

Thanks for any help offered.

Regards, Neil.



.



Relevant Pages

  • Re: Networking issue
    ... all i want to do is to attach that machine on same switch acting as ... gateway to computers with private ips then expose it to the gateway ... which is my third or fourth network hop to the internet you can ... switch is connected to other switch which connected to the internet ...
    (comp.infosystems.www.servers.unix)
  • Re: Anyone feel like helping me with setting up Marinetti on my GS
    ... I am using a cable modem then a router, then a switch. ... i have left keep network alive every 30 minutes unchecked. ... gateway i set to 192.168.1.1 which is the default gateway for my ...
    (comp.sys.apple2)
  • Re: OK for Default Gateway to be in Different Subnet?
    ... When the switch wants to reach another IP belonging to a different network, ... it will attempt to forward the packet to its configured default gateway. ... it - there's no way to forward the packet because it doesn't know the MAC ...
    (comp.dcom.sys.cisco)
  • Re: Very small network question...
    ... an Ethernet-enabled target board with a static IP. ... other network, ... connection from my PC to the target board, via the switch, I expect it ... If your target board is connected to your PC via the switch, you don't need to route packets through a gateway. ...
    (comp.os.linux.networking)
  • Re: Catalyst 3750 Static Routes
    ... some network to be routed to pix, you should use ip route net mask ... >I am attempting to enable routing on a Catalyst 3750 switch. ... > The network that is routed to this gateway is 10.10.66.0 and the ...
    (comp.dcom.sys.cisco)