Announcement

Collapse
No announcement yet.

dummy ip adresses

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • dummy ip adresses

    Hello,

    A weird question, but what IP address should I set if I don't want my computer to take part in the network?

    The reason I ask is this: I us NetProfileSwitch to change settings for various networks. However, in order to activate a profile, you first need to physically connect to a network. During the time between connecting physically and activating the profile (which first flushes the information), the PC appears on the network (possibly with an incorrect IP address). So I want to add a profile in which all adapters are set to "neutral" (I can then activate this when I leave a network, and when I connect to a different network the PC won't participate).

    I'm thinking of using either 0.0.0.0 or 127.0.0.1 .
    (0.0.0.0 seems like a weird address to use in a normal network; 127.0.0.1 is unreachable for other networked devices)

    Any suggestions?

    Thanks!


    Jörg
    pixar
    Dream as if you'll live forever. Live as if you'll die tomorrow. (James Dean)

  • #2
    127.0.0.1 or use an APIPA
    /meow
    Intel Core 2 Quad Q6600
    Asus Striker ][
    8GB Corsair XMS2 DDR2 800 (4x2GB)
    Asus EN8800GT 512MB x2(SLI)

    I am C4tX0r, hear me mew!

    Comment


    • #3
      APIPA is not suitable: my work network is constantly checked for unallowed IP addresses (and mac-addresses, but this doesn't matter here), so I need something that doesn't yield a network connection.

      The 127.0.0.1 seems like a logical thought, but I also found that all addresses in the range 127.x.x.x are loopback addresses (http://www.geocities.com/SiliconVall...rk/ipaddr.html ). As 127.0.0.1 is the local loopback adapter, might it be perhaps better to go for 127.0.0.0 or so?


      Jörg
      pixar
      Dream as if you'll live forever. Live as if you'll die tomorrow. (James Dean)

      Comment


      • #4
        I assume that the networks you connect to do not all implement DHCP.

        Otherwise (ie., if they did), you wouldn't need this profile switcher.

        I wouldn't use the loopback IP. I would use something in the "Class C" range with a small (ie., one host) netmask.

        For example: 192.69.69.1 with a netmask of 255.255.255.254 and no gateway.
        P.S. You've been Spanked!

        Comment


        • #5
          True, but it is also useful when connecting to different networks that use DHCP: the PC tries to reuse its previous IP address, and does so even if this address is alreay in use on the network. Consequently, it yields an IP address conflict. The profile switchers flushes the IP settings prior to activation of a profile, making sure the IP address is not reused. It also switches smtp mail server, sets up a VPN if needed, alters firewall settings and sets or removes shares.

          Why would you use something in the class C range?


          Jörg
          pixar
          Dream as if you'll live forever. Live as if you'll die tomorrow. (James Dean)

          Comment


          • #6
            Just thought of something: the profile switcher also allows me to disable a network adapter. I'll have to test, but perhaps that is the easiest thing to do?


            Jörg
            pixar
            Dream as if you'll live forever. Live as if you'll die tomorrow. (James Dean)

            Comment


            • #7
              Originally posted by VJ View Post
              Why would you use something in the class C range?
              Just in case you happen to one day use a piece of software that expect a semi legitimate IP address.

              It doesn't really matter what you use if your netmask is so tightly constrained.
              P.S. You've been Spanked!

              Comment


              • #8
                Originally posted by VJ View Post
                Just thought of something: the profile switcher also allows me to disable a network adapter. I'll have to test, but perhaps that is the easiest thing to do?


                Jörg

                Uh, yeah. I assumed you already tried this approach and couldn't get it working.
                P.S. You've been Spanked!

                Comment


                • #9
                  Originally posted by schmosef View Post
                  Uh, yeah. I assumed you already tried this approach and couldn't get it working.
                  Sorry, my mistake... You cannot disable an adapter... You can only check whether or not it is altered in a profile. But the adapter has to be present.

                  So I need a workaround....

                  I understand why you'd go to Class C.... But isn't 127.0.0.1 a legit IP address as well (even though you won't get far with it)?


                  Jörg
                  Last edited by VJ; 11 April 2007, 06:28.
                  pixar
                  Dream as if you'll live forever. Live as if you'll die tomorrow. (James Dean)

                  Comment


                  • #10
                    There are private IP addresses that are recommended for use. See this page:

                    Ladies and gentlemen, take my advice, pull down your pants and slide on the ice.

                    Comment


                    • #11
                      I know about those...
                      But I'm looking for an adress which can be used to have a non-functional network even though the pc is physically connected.

                      (it is to bridge the time before I can activate the profile)


                      Jorg
                      pixar
                      Dream as if you'll live forever. Live as if you'll die tomorrow. (James Dean)

                      Comment


                      • #12
                        You can use anything then. Just pick a range of addresses like 192.168.100.1-254/24 and never use this range for anything else.
                        Ladies and gentlemen, take my advice, pull down your pants and slide on the ice.

                        Comment


                        • #13
                          The networks I connect to are not all under my control. One uses 192.168.1.x, another 192.168.2.x, a third one uses 157.193.x.x.
                          I just wondered if there was an address that would not connect me to any network: if I were to choose 192.168.100.1 for instance, I could cause a conflict on a network which uses subnet 192.168.100.x. At the moment I don't connect to any such networks, but it could happen. If there exists a dummy ip address, I could use this one (hence the thought of using 127.0.0.1: no network device can see me; I don't think I could connect either).


                          Jörg
                          pixar
                          Dream as if you'll live forever. Live as if you'll die tomorrow. (James Dean)

                          Comment


                          • #14
                            Well, setting 127.0.0.1 as an IP address does not work. There is no error message, but when verifying with ipconfig, it is obvious the addresses haven't changed.


                            Jörg
                            pixar
                            Dream as if you'll live forever. Live as if you'll die tomorrow. (James Dean)

                            Comment


                            • #15
                              the netmask is the important point here.

                              if you use a netmask that restricts you to one host, it doesn't matter what IP address you assign, even if it's an IP already in use on the main network.
                              P.S. You've been Spanked!

                              Comment

                              Working...
                              X