Find the answer to your Linux question:
Results 1 to 8 of 8
I am using fedora 10,recently i gor broadband connection and so i have setup DSL connection..But my netmask keeps changing to the gateway address..How to fix it?...
  1. #1
    Just Joined!
    Join Date
    Jun 2009
    Posts
    41

    Red face Netmask Keeps changing...

    I am using fedora 10,recently i gor broadband connection and so i have setup DSL connection..But my netmask keeps changing to the gateway address..How to fix it?

  2. #2
    Linux User saivin's Avatar
    Join Date
    Dec 2008
    Location
    Bengaluru, India
    Posts
    305
    Hi,
    can you please elaborate.
    netmask keeps changing to the gateway address..
    Netmask looks like 255.255.255.0 and gateway is usually the ip of your router, something like 192.168.0.1

    May be your can post here the output of
    Code:
    /sbin/ifconfig
    A candle looses nothing by lighting other candles. - Khalil Zibran.
    Registered Linux User #490076

  3. #3
    Just Joined!
    Join Date
    Jun 2009
    Posts
    41
    [root@fast ~]# /sbin/ifconfig
    eth1 Link encap:Ethernet HWaddr 00:1A:4DD:7B:E2
    inet addr:192.168.1.138 Bcast:192.168.1.138 Mask:255.255.255.255
    UP BROADCAST MULTICAST MTU:1500 Metric:1
    RX packets:711 errors:0 dropped:0 overruns:0 frame:0
    TX packets:22 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:54284 (53.0 KiB) TX bytes:3898 (3.8 KiB)
    Interrupt:23 Base address:0x4000

    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:20 errors:0 dropped:0 overruns:0 frame:0
    TX packets:20 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:1280 (1.2 KiB) TX bytes:1280 (1.2 KiB)

  4. #4
    Just Joined!
    Join Date
    Jun 2009
    Posts
    41
    Bump..........

  5. #5
    Just Joined!
    Join Date
    Feb 2009
    Posts
    23
    Netmask is good - your broadcast address looks out to me. It should be 192.168.1.255

    Not 100% how that works via ifconfig - doesn't the netmask set this?

  6. #6
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    the netmask is not ok, the last octet should not be 255, depending on the network you are on, it should be something like 255.255.255.0 most likely

  7. #7
    Just Joined!
    Join Date
    Jun 2009
    Posts
    41

    Red face

    My DNS also keeps changing,I have set primary DNS address as 218.248.240.23
    and Secondary DNS address as 218.248.240.135...but these addresses gets changed automatically when connection established.

  8. #8
    Linux Enthusiast
    Join Date
    Apr 2004
    Location
    UK
    Posts
    658
    Does your broadband connection work with those settings?

    Your netmask is unusual, but not totally unreasonable. Basically it's saying your computer is the only one on that network, and if you want to find another computer you'll have to go through a gateway of some sort (static routes not withstanding).

    Your broadcast address is consistent with your IP and Netmask. All of these settings including your DNS servers will be getting set via DHCP so unless something is actually not working for the most part I'd leave them alone.

    The only exception I can think of is you may want to manually set your DNS servers. For that I'm pretty sure you can configure your DHCP client to ignore those settings and it'll leave whatever you set up in place.

    I don't have a fedora installation handy, but I think you'd want to investigate dhclient. My config files for it are in /etc/dhcp3/dhclient.conf. If you remove "domain-name-servers" from the request list it should do the business. Don't forget to backup the config file before you get into it though, in case things go wrong.

    Let us know how you get on.
    To be good, you must first be bad. "Newbie" is a rank, not a slight.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...