Re: 2 Subnets on 1 Lan

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thom Paine wrote:
> I have a small network that is 10.10.10.x and I have a few PLC devices
> that I'd like to be able to talk to that are on a 192.168.0.x segment.
> 
> Can I put some sort of a route statement into my fedora server that
> will link these two so that I can talk to the 192 devices from my pc
> on my 10 network? I use my fedora box as my router and dhcp server.
> 
> Thanks.
> 
One way is to add a route to the 192.168.0.x network through the
same interface as the 10.10.10.x network. Something like:
route add -net 192.168.0.0 eth0
or
route add -net 192.168.0.0 dev eth0

You can have the route added automatically by creating a
/etc/sysconfig/network-scripts/route-<interface-name> file with the
route.

I used it with the old format of:
192.168.0.0/24 dev eth0

I am not sure, but I think the new format would be:
ADDRESS0=192.168.0.0
NETMASK0=255.255.255.0

or
ADDRESS0=192.168.0.0
NETMASK0=255.255.255.0
GATEWAY0=10.10.10.x

Remember, your machine does not need an IP address in the network
range you are trying to talk to. You just need to know how to get to
that network. (Without adding the specific route, your computer
would try to use the default route.) You may also have to open a
hole in your firewall for the 192.168.0.0 network, depending on your
setup.

Mikkel
-- 

  Do not meddle in the affairs of dragons,
for thou art crunchy and taste good with Ketchup!

Attachment: signature.asc
Description: OpenPGP digital signature

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux