LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How can I connect two lan cards with different IP clases ? (https://www.linuxquestions.org/questions/linux-newbie-8/how-can-i-connect-two-lan-cards-with-different-ip-clases-928006/)

manikandan_vs 02-06-2012 10:27 PM

How can I connect two lan cards with different IP clases ?
 
hi,
am using ubuntu 10.10,i want to share internet use of squid and also i need to share samba sources to my clients ,

ihave two ethernet cards eth0 is connected to inetrnet and eth1 is connected to switch

i had dhcp server to assing ip to client machine.....


my ethernet conf:


Quote:


root@Mani:~# ifconfig
eth0 Link encap:Ethernet HWaddr 8c:89:a5:51:73:78
inet addr:192.168.3.200 Bcast:192.168.3.255 Mask:255.255.255.0
inet6 addr: fe80::8e89:a5ff:fe51:7378/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:7032 errors:0 dropped:0 overruns:0 frame:0
TX packets:7827 errors:0 dropped:0 overruns:0 carrier:1
collisions:0 txqueuelen:1000
RX bytes:4923018 (4.9 MB) TX bytes:1442704 (1.4 MB)
Interrupt:45

eth1 Link encap:Ethernet HWaddr 00:e0:29:28:9f:b8
inet addr:192.168.1.200 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::2e0:29ff:fe28:9fb8/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:30 dropped:0 overruns:0 carrier:60
collisions:510 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:5958 (5.9 KB)
Interrupt:17 Base address:0xec00

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:218 errors:0 dropped:0 overruns:0 frame:0
TX packets:218 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:38277 (38.2 KB) TX bytes:38277 (38.2 KB)


servers machine : ubuntu 10.10
clients machines : windows xp,linux

thaks....

NEQTAN 02-06-2012 11:10 PM

ubuntu server
 
Hello Mani,

Rather than trying to write a tutorial, I figured a link to a couple good how to's would suffice.


Ubuntu Server Guide for Network Config.:

https://help.ubuntu.com/11.10/server...iguration.html

This is a Debian guide (Ubuntu is based on Debian so there may be some things of use worth reading):

http://www.aboutdebian.com/network.htm

Yet another good how to on Network Administration

http://linux-ip.net/html/linux-ip.html

But from what I understand of the information you gave. Eth0 is the servers nic and Eth1 is the switch nic. So it would seem to me you want to configure your server to allow the traffic required. The switch should not require any attention.

Sorry if this is not helpful.

If you could possibly explain what you have performed on the server setup so far for this problem?

fukawi1 02-07-2012 12:54 AM

I dont see any questions in the OP..

In keeping with the "question" part of the LinuxQuestions Idea, could you please clarify your post, with clear questions.


All times are GMT -5. The time now is 04:19 PM.