Tiny Core Base > TCB Q&A Forum
Multi NIC's different subnets set up
sergle:
Hello,
I am trying to set up Microcore64 to run on an industrial PC with multiples Ethernet interfaces.
There are four Ethernet NIC's chips:
Here is the NIC's set up:
eth0: not used
eth1: 192.168.0.10 netmask 255.255.255.0
eth2: 192.168.1.100 netmask 255.255.255.0
eth3: 192.168.2.100 netmask 255.255.255.0
I have a script that does the following which is called from bootlocal.sh
--- Code: ---ifconfig eth1 192.168.0.10 netmask 255.255.255.0
ifconfig eth2 192.168.1.100 netmask 255.255.255.0
ifconfig eth3 192.168.2.100 netmask 255.255.255.0
--- End code ---
The problem that I have is that I can only use one of the NIC's at once.
I can ping any node on 192.168.0.10 but I cant ping on any other. Even when I disable with ifconfig eth0 down I can not ping any other subnet nodes.
It is recommended to tie to DEVICE but I am not so sure where actual network scripts reside that get executed during boot time.
I would appreciate your help
Thanks
Serge
gerald_clark:
It is not clear what you are doing, but you need to configure your routes and nameservers.
sergle:
I have added entries to route table but its not seem to be working.
What I am trying to achieve is to be able to handle packets from all NIC's simultaneously using my own executable.
I receive from eth1 process commands and send on to eth2 and vice versa.
The problem is that I am not able to figure out which extensions I need for full network routing functionality and the other is that it doesn't seem that tce-load -wi xxx command adds them on boot.
I have specified tce=sda1 in menu.lst however the tce-load command complains about not being able to create tce/optional or cd to it...
gerald_clark:
The last post conflictswith the first post.
Are you using eth0 or not?
It is still not clear what what you have done, and what you are trying to accomplish.
sergle:
I cant find where TC gets information about eth interfaces
I was hoping to find it here in:
--- Code: ---/etc/sysconfig/network-scripts/ifcfg-ethX
--- End code ---
my routeing table is set up using route add command:
--- Code: ---route add -host 192.168.0.10 eth1
route add -host 192.168.1.100 eth2
route add -host 192.168.2.100 eht3
--- End code ---
The route -n output is :
--- Code: ---Destination Gateway Genmask Flags Metric Ref Use Iface
127.0.0.1 0.0.0.0 255.255.255.255 UH 0 0 0 lo
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth2
192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth3
--- End code ---
Navigation
[0] Message Index
[#] Next page
Go to full version