LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-11-2009, 08:43 AM   #1
ridwan77
LQ Newbie
 
Registered: Mar 2006
Posts: 29

Rep: Reputation: 15
different subnet


Hello all!

I'm new in linux and i'm trying to setup a slackware linux server with some ip routing. I have the following subnets in my ifconfig

/sbin/ifconfig eth1 192.168.6.1 netmask 255.255.255.240 up
/sbin/ifconfig eth1:1 192.168.6.17 netmask 255.255.255.240 up
/sbin/ifconfig eth1:2 192.168.6.33 netmask 255.255.255.240 up
/sbin/ifconfig eth1:3 192.168.6.65 netmask 255.255.255.224 up
/sbin/ifconfig eth1:4 192.168.6.97 netmask 255.255.255.248 up
/sbin/ifconfig eth1:5 192.168.6.105 netmask 255.255.255.248 up
/sbin/ifconfig eth1:6 192.168.6.113 netmask 255.255.255.248 up
/sbin/ifconfig eth1:7 192.168.6.121 netmask 255.255.255.248 up
/sbin/ifconfig eth1:8 192.168.6.129 netmask 255.255.255.248 up
/sbin/ifconfig eth1:9 192.168.6.137 netmask 255.255.255.248 up


all the above subnets are used for local pc's. these will not get any internet access. Now i can't access pc from one subnet to other subnet, but i want to access all the subnet pcs can access each other. can anyone tell me how to do the routing ????????
 
Old 09-11-2009, 02:59 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
eth0:something is an aliased interface, and is still officially connected to the SAME network. Whilst adding aliases on different subnets is possible, it's REALLY bad to do this... What you should do is use vlan tagging and a suitably intelligent switch, and then have interfaces like eth0.123 which would relate to an 802.1q vlan.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Subnet Help msound Linux - Networking 1 11-16-2006 12:06 PM
subnet jpostma Linux - Hardware 1 10-16-2005 02:11 PM
another subnet. bruse Linux - Networking 1 07-19-2005 12:35 PM
a /27 within a /24 subnet arnix Linux - Networking 1 07-16-2003 09:16 PM
Can IP from different subnet be configured on another subnet russell Linux - Networking 1 08-23-2002 01:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration