Re: 2 Subnets on 1 Lan

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

 



Thom Paine wrote:
Can I add the eth0:0 from the command line somehow or do I need to run
system-config-network?

I don't have linux on this machine I'm working on today and need to do
this remotely with ssh.

Thanks.
# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:0C:6E:1C:65:4B
          inet addr:192.168.32.68  Bcast:192.168.32.255  Mask:255.255.255.0
...
# ifconfig eth0:1 172.16.2.65/22
...
# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:0C:6E:1C:65:4B
          inet addr:192.168.32.68  Bcast:192.168.32.255  Mask:255.255.255.0

eth0:1    Link encap:Ethernet  HWaddr 00:0C:6E:1C:65:4B
          inet addr:172.16.2.65  Bcast:172.16.3.255  Mask:255.255.252.0
...
The route from pc to devices within the new net is automatically added.
# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.32.0    *               255.255.255.0   U     0      0        0 eth0
172.16.0.0      *               255.255.252.0   U     0      0        0 eth0

But as you mention, if you want the new net address routed outside, you are going to need to set their mask/gw address correctly, and probably provide inbound firewall / routing.

DaveT.

--
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