Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
 
Reply to this topicStart new topic
> Changing subnet mask stop's SQUID working
JHM
post Jan 21 2009, 05:07 AM
Post #1


Whats this Lie-nix Thing?
*

Group: Members
Posts: 1
Joined: 21-January 09
Member No.: 13,865



Due to a lack of IP address I am changing our subnet mask from 192.168.0.0/24 to 192.168.0.0/22. We use IP address 192.168.0.4 as our squid server and I am trying to change the subnet mask so that workstations with addresses 192.168.1.x - 192.168.3.x will be able to use squid as the proxy server.

I am new to Linux but so far I have edited the squid.conf and changed 2 lines to read

acl myIP src 192.168.0.4/255.255.252.0
acl myIP src 192.168.0.0/255.255.252.0

I now need to change the subnet mask for the Linux server. I have run the command 'ifconfig -a' and received the following

eth0 - inet addr:192.168.0.4 Bcast:192.168.0.255 Mask:255.255.255.0

I then ran the command 'ifconfig eth0 netmask 255.255.252.0'

When I check the config again the new mask is dispalayed but nothing can use the squid server. Further more if I run 'ifdown eth0' and then 'ifup eth0' the mask reverts back to 255.255.255.0 (but at least the workstations's can use squid again).

1. Do I need to save it (similar to wr mem with a cisco box)
2. Do I need to change the BCast (assuming 192.168.3.255 as this will be the end of the /22 range).
3. Is there something else I need to configure?

I am using Red Hat (unsure which build - is there an easy way to find out)

Thanks

JHM
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 20th October 2017 - 09:22 AM