LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-09-2012, 01:08 PM   #1
Gil@LQ
Member
 
Registered: Apr 2010
Location: India /Hyderabad
Distribution: RedHat, CentOS
Posts: 273

Rep: Reputation: 1
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.

Last edited by Gil@LQ; 07-10-2012 at 03:14 AM.
 
Old 07-10-2012, 05:46 AM   #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
NIC's don't have DNS, and they don't have default gateways if there already is one. leave them both blank.
 
Old 07-10-2012, 09:09 AM   #3
Gil@LQ
Member
 
Registered: Apr 2010
Location: India /Hyderabad
Distribution: RedHat, CentOS
Posts: 273

Original Poster
Rep: Reputation: 1
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.
 
Old 07-10-2012, 09:27 AM   #4
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
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.
 
Old 07-11-2012, 08:45 AM   #5
Gil@LQ
Member
 
Registered: Apr 2010
Location: India /Hyderabad
Distribution: RedHat, CentOS
Posts: 273

Original Poster
Rep: Reputation: 1
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.
 
Old 07-11-2012, 09:14 AM   #6
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
a squid server on DHCP?? that sounds like it'll bite you at some point. Server = Static addresses.
 
Old 07-12-2012, 05:08 AM   #7
Gil@LQ
Member
 
Registered: Apr 2010
Location: India /Hyderabad
Distribution: RedHat, CentOS
Posts: 273

Original Poster
Rep: Reputation: 1
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.
 
Old 07-21-2012, 05:42 AM   #8
Gil@LQ
Member
 
Registered: Apr 2010
Location: India /Hyderabad
Distribution: RedHat, CentOS
Posts: 273

Original Poster
Rep: Reputation: 1
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.
 
  


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
Help with Squid Configuration greenepenguin Linux - Networking 3 09-11-2009 10:58 PM
Help with Squid configuration greenepenguin Linux - Server 6 09-06-2009 07:34 PM
Problem with configuration of Squid server behind a squid ajitup Linux - Server 13 08-12-2009 10:55 PM
Squid configuration saran_redhat Linux - Server 1 07-10-2009 01:38 PM
Squid: special configuration for remote Squid server hamish Linux - Software 0 12-06-2005 03:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:03 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