LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Lan card configuration for squid (https://www.linuxquestions.org/questions/linux-server-73/lan-card-configuration-for-squid-4175415737/)

Gil@LQ 07-09-2012 01:08 PM

Lan card configuration for squid
 
hi,

i configured squid, i think i'm not bad at configuring acl's and all. What i'm configuring at is..... below scenario

squid with 2 lan cards

eth0 1.1.1.1 is wan ip and 1.1.1.254 is gateway 8.8.8.8 is dns

eth1 192.168.85.9 is lan ip

my doubt is what ip should i give as gateway and dns in eth1

and also gateway and dns for clients. i don't have dedicated dns.

please help me

thank you.

acid_kewpie 07-10-2012 05:46 AM

NIC's don't have DNS, and they don't have default gateways if there already is one. leave them both blank.

Gil@LQ 07-10-2012 09:09 AM

hi acid_kewpie,

thanks for your reply, now i came with new issue... configured the ip's for both the lan cards, but after restart if i type ifconfig they showing both same ip, i clicked on network connections icon , there i found both lan cards (broad com & Dlink) connected to same eth0.
but i assigned wan ip to eth0 and local lan ip to eth1. why does this hanppen. as i configured specifically for eth0 & eth1 in /etc/sysconfig/network-scripts/ifcfg-eth0 & eth1 clearly which ip is for which card. if i manually click on netowrk connections icon and click connect broadcom to eth0 & Dlink to eth1 then every thing fine, but only after restart. both connect to same ...
please help me. im done with acls and every thing except this one. i have to make it up and running very soon

thank you very much in advance.

acid_kewpie 07-10-2012 09:27 AM

I don't know what this "network card icon" is, but I'd guess it's NetworkManager. If so, I'd suggest removing the NetworkManager package completely, and stick to the ifcfg files you've already found, and the system-config-network tool, as the two can clash and fight for attention at times.

Gil@LQ 07-11-2012 08:45 AM

hi acid_kewpie,

great man, you did it for me. thank you very much i just removed NetworkManger from start up using chkconfig. but some times i'm unable to ping www.google.com from cmd. if i renew ip with dhclient eth0 it works. though it doesnt happen allways any solution for it.?

thank you very much for your help.

acid_kewpie 07-11-2012 09:14 AM

a squid server on DHCP?? that sounds like it'll bite you at some point. Server = Static addresses.

Gil@LQ 07-12-2012 05:08 AM

hi acid_kewpie,

thank you for ur help. You are right server = static ip. For time being i took a connection from wi-fi router so it assings dynamically. Now i changed to static. My doubt was why was is stopped working after restarting till i hit DHCLIENT ETH0. I'm trying to sort it out. Apart from that thanks for your help you solved my issue.

thank you very much.

Gil@LQ 07-21-2012 05:42 AM

hi acid_kewpie ,

i relly in need of help with linux router with four networks. Please check my new thread.

http://www.linuxquestions.org/questi...ks-4175417938/

thank you.


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