asdf

Asked by Magnus Grander

asdf

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu feisty-gdm-themes Edit question
Assignee:
No assignee Edit question
Solved by:
Ralph Janke
Solved:
Last query:
Last reply:
Revision history for this message
Massimo Forti (slackwarelife) said :
#1

Thanks for your question. The problem is you are not able to ping your linux machine i your lan ???
PING 192.168.10.52 #it is the IP addess of your Ubuntu PC ???
Thanks many for your replay

Revision history for this message
Magnus Grander (maggrand) said :
#2

No that is the IP number for the 'bar code reader'.

Revision history for this message
Massimo Forti (slackwarelife) said :
#3

I don't understand your problem sorry. Which IP you want to ping ??? Thanks

Revision history for this message
Jayson Vaughn (thedonvaughn) said :
#4

Your Linux desktop seems to be on a different subnet than your barcode reader it seems(even though you are using 255.255.0.0 netmask, which seems like it should work to me :)

Paste your ifconfig output as well as netstat -rn output please.

Also how is your windows machine configured? It's IP,netmask, and gateway as well.

Hopefully we can solve this.

Revision history for this message
Magnus Grander (maggrand) said :
#5

ifconfig
eth0 Link encap:Ethernet HWaddr 00:16:17:C6:0F:EA
          inet addr:192.168.64.173 Bcast:192.168.64.255 Mask:255.255.255.0
          inet6 addr: fe80::216:17ff:fec6:fea/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
          RX packets:81830 errors:0 dropped:0 overruns:0 frame:0
          TX packets:55427 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:67254845 (64.1 MiB) TX bytes:8940544 (8.5 MiB)
          Interrupt:21 Base address:0xf200

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:201 errors:0 dropped:0 overruns:0 frame:0
          TX packets:201 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:10572 (10.3 KiB) TX bytes:10572 (10.3 KiB)

netstat -rn
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
192.168.64.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
0.0.0.0 192.168.64.1 0.0.0.0 UG 0 0 0 eth0

my computer
192.168.64.173 (dhcp)
255.255.255.0

gateway
192.168.64.1

Hopefully this helps a bit more...

Revision history for this message
Massimo Forti (slackwarelife) said :
#6

Your net config is ok:

getaway --> 192.168.64.1
Your Ip address --> 192.168.64.173

You can post the result of this command:

$: traceroute -t 192.168.10.52

thanks

Revision history for this message
Magnus Grander (maggrand) said :
#7

traceroute -t 192.168.10.52

traceroute: "192.168.10.52" bad value for tos

Revision history for this message
Massimo Forti (slackwarelife) said :
#8

Try

traceroute -t 212.214.224.29

thanks

Revision history for this message
Magnus Grander (maggrand) said :
#9

Same answer...

traceroute: "212.214.224.29" bad value for tos

Revision history for this message
Ralph Janke (txwikinger) said :
#10

Something is wrong in the information

> PING 192.168.10.52 (192.168.10.52) 56(84) bytes of data.
> From 212.214.224.29 icmp_seq=1 Destination Host Unreachable
> From 212.214.224.29 icmp_seq=3 Destination Host Unreachable

This say that the originating IP-address is 212.214.224.29 and the ping is sent to 192.168.10.52 . What is the routing etc information on that machine?

Revision history for this message
Magnus Grander (maggrand) said :
#11

The windows machine is connected directly into the 'bar code machine'
it has no connection to internet..

so it has
gateway 192.168.10.52
DNS 255.255.255

212.214.224.29
that is too songnetworks our internet provider....

Revision history for this message
Magnus Grander (maggrand) said :
#12

Correction the device is connected throught an internet hub..
But the Windows XP computer is not connected to internet just to the reader...

I would prefer to connect it to this (UBUNTU) machine and still have connection to the internet.

Revision history for this message
Ralph Janke (txwikinger) said :
#13

You can't have a gateway with the address 192.168.10.52 if you have only a 212.214.* address for the interface. The idea of a gateway is, that it is inside the address space of the subnet and therefore can be addressed by a non-routing device, and in turn routes it further.

You either have to have a gateway with with a 212.214.224.* address space that has a second (virtual) interface that is inside the 192.168.10.* address space or you must create a 192.168.10.* (virtual) interface on the device.

A third possibility would be to give your ubuntu machine a virtual 212.214.224 address that a direct connection without gateway is possible. However, since you I understand this address space is owned by your ISP, I don't think you can get a second address in the address space.

Summarising, you need to always have a gateway in the same address space as your ip address is. Since I am not 100% sure where you can change things, it is difficult to say which way is the easiest or best to follow.

I hope this helps

Revision history for this message
Jayson Vaughn (thedonvaughn) said :
#14

Hello,
First off, if your reader is connected directly to your Windows machine and not your HUB, how do you expect your Ubuntu box to talk to it? It _has_ to be on the same network as your Ubuntu machine. It sounds like your Windows machine and the bar code reader are isolated from the world, only connected to each other. I recommend you configure your bar code to the 192.168.10 subnet that your Ubuntu box is on, plug it up to your router and you should be good to go.

Revision history for this message
Magnus Grander (maggrand) said :
#15

Thanks for all the help...now i got a lot of things to try...hope it works...
Again thanks everyone..

Revision history for this message
Magnus Grander (maggrand) said :
#16

The reader is connected to the HUB Jayson...but the windows machine is configured to only talk to the reader and not to anything else. I can configure up my dear UBUNTU machine that way too ...but then i lose my internet connection :-(
And i can't include two router ways....So all the packages is sent out to the internet provider and is forever lost in cyberspace.

Revision history for this message
Ralph Janke (txwikinger) said :
#17

You can configure two networks on the same network card in ubuntu if you like!

If you configure your network card in /etc/network/interfaces in the following way

iface eth0 inet static
  address <ip network 1>
  netmask 255.255.255.0
  broadcast <broadcast network 1>
  gateway <gateway network 1>

iface eth0:0 inet static
  address <network 2>
  netmask 255.255.255.0
  broadcast <broadcast network 2>

Choose for the network 1 the addresses you currently use for your ubuntu box, and for network 2 what you use if you make it talk to the reader.

Revision history for this message
Magnus Grander (maggrand) said :
#18

can i do so even if i use DHCP for the first network ?

Revision history for this message
Best Ralph Janke (txwikinger) said :
#19

Yes that is even easier:

iface eth0 inet dhcp

iface eth0:0 inet static
   address <network 2>
   netmask 255.255.255.0
   broadcast <broadcast network 2>

Choose for the network 2 what you use if you make it talk to the reader.

Revision history for this message
Magnus Grander (maggrand) said :
#20

Many thanks to everyone.

This is a great forum and Ubuntu rockzzz

;-)

Revision history for this message
Magnus Grander (maggrand) said :
#21

Thanks Ralph Janke, that solved my question.