Ip addressing and subnetting

Hello everyone i am writing a program that will test to see if to ip addresses are on the same network thet only thing is i have no idea what would the best route to take has anyone done anything similar or has anyone any advice i could use

Well I solved my own problem and it was working fine for months until Yosemite came along....
To tether my iPhone USB connection to an Airport Express Base Station (AEBS)- i did the following
1. Connect iPhone and turn on Personal Hotspot using USB
2. Going to System Preferences on the Mac click on Network
3. Set up the Ethernet setting with a static IP - (manual)
Configure IPv4 Manually -
IP Address: 192.168.2.2
Subnet Mask: 255.255.0.0
Router: 192.168.2.1
Next step is to configure the AEBS
Start from fresh -
Create a New Network
Internet Settings set to :
Connect Using: Static
IPv4 Address: 192.168.2.3
Subnet Mask: 255.255.255.0
Router Address: 192.168.2.1
DNS Servers: 192.168.2.1
Then under the Network tab the router mode is set to DHCP and NAT
It worked beautifully until recently , after the upgrade to Yosemite it was working for about 1 month and then as of yesterday it stopped working.
I am not a networking guru and I am open to suggestions on a better setup. Has anyone got this setup working too?

Similar Messages

  • How to change IP address and subnet mask without using the sys-unconfig ?

    I have Solaris 10 x86. I've ran into problems using the sys-unconfig command
    to change hostname and IP address.
    How to I manually change the IP address and subnet mask values on Solaris 10 manually?
    Thanks.

    We just switched over a DNS server by using ifconfig, (same subnet), and killing named. seems to be working fine, anything I should look out for ?
    steps:
    Prep -
    - change name in /etc/hostname.e1000g0
    - change name and IP in /etc/hosts and /etc/nodename
    - # uname -S dnsint02
    Activate
    - unplug old dnsint02
    # ifconfig e1000g0 192.168.2.80
    # kill -9 [PID of named]
    Cleanup
    - Remove old key on clients I SSH from.
    - reconfigure backup software for new name/server combo.
    Edited by: HarryC on Jun 25, 2009 9:29 AM

  • Manipulating ip address and subnet mask with plsql

    Hi,
    I'm looking for a plsql package in order to perform basic operations with ip adresses and subnet masks like:
    - validating an ip address (dot format)
    - converting masks (16 -->> 255.255.0.0)
    - splitting an ip range with a higher subnet mask (10.3.0.0/16 -->> 10.3.0.0/17, 10.3.128.0/17)
    It's very difficult to find any information about this on google so if you know or had written such a package or function....

    As using BITAND function
    with two arguments IP_ADDRESS (transfer 32bits-integer) and
    POWER(2,32)-POWER(2,32-MASKS),
    you must be able to get ip range (32-bits-integer)
    and a higher subnet mask by IP_RANGE+TRUNC(POWER(2,31-MASKS)).
    And then you can transfer it to dot format (decimal,octal etc.) easily.

  • Ipad is showing connected to wifi but it is saying its not connected to internet.  I have reset all settings, tried to change IP address and subnet mask and nothing is working.

    My ipad mini 3 is not showing that it is connected to the wifi, but it is saying it is not connected to the internet.  I have reset network settings and then reset all settings and it has not worked.  I have tried to change it to static and change the IP address and the subnet mask and that is not working either.  I have also tried to use the wifi in different places and that doesn't work either.  Please help!!!!  iPad is useless without the internet.

    1. Set router back to Auto DHCP.
    2. Turn off router for 30 seconds and on again.
    3. Re-boot iPad.

  • How to configure the eth1 port of NIcRIO 9024 to another IP address and subnet mask

    Hi ,
    I am using cRIO 9024 and am planning to configure it to be an MMS server that interacts with a client which is in another network with different IP and subnetmask. I want to run the server VIs from the host computer via the eth0 port and want to communicate the MMS messages through the eth1 port. the eth0 port is configured as a static IP as shown in the screenshot attached and would like to assign a separate IP and subnet mask to the other port . But when I try to save the configuration I get the error "Could not save your changes tot he target.The subnet mask for eth1 is invalid" .
    I have already directly cross connected the Crio and have disabled the firewalls and still am not able to configure it.
    1) is it possible to configure the ethernet ports to have separate IPs corresponding to different networks and thus the subnet masks?
    2) If its possible then what is the mistake i am doing while configuring it ?
    I would be extremaly grateful to have a reply on this as its pretty desperate to spend a lot of time just to set up the IP configurations..!!!!!
    Regards
    Abhinav

    Dear Abhinav,
    I'm sorry but what you are tryining to do is not suported by the Second Ethrnet Port on any cRIO and so you getting this error meeage.
    Here a abstract out ouf the KnowledgeBase How do I Configure the Dual Ethernet Ports on Real-Time Controllers?:
    Ethernet port 2 is currently not supported to communicate outside its own subnet. There is no capability of configuring the Default Gateway for Ethernet port 2 and therefore cannot connect to a large isolated intranet.  However, there appears to be a common misconception that this port can only be used for communication between NI products: this is not the case, though any communication through the secondary port must be within the same subnet.
    Kind Regards,
    SG3 | Applications Engineering | National Instruments | NIG |

  • Ip addressing and subnets

    I was wondering if anyone knew if I could use a subnet mask of 255.255.255.128 with a network number of 10.107.128.xxx I believe I cannot use this mask with a Class C address but since this is a class A address I though I might be able to. I want to have two subnets each with 126 addresses. These address will be split between two office each with a Cisco 3620 router.
    Thanks,
    Scott Graham

    The topic of this forum is IP + Optical however there are a number of professionals online who may be able to assist you. We are always considering additional forums for such topics and I will make a note of your post.
    If you don't get a suitable response to your post, you may wish to review our resources at the online Technical Assistance Center http://www.cisco.com/tac or speak with a TAC engineer. You can open a TAC case online at www.cisco.com/tac/caseopen
    If anyone else in the forum has some advice, please reply to this thread.
    Thank you for posting.

  • Ip addressing and subneting

    can any one provide a good method on how to subnet, find a range, identify to witch ip belong to witch range, basically anything that can help...
    pst: None of those long explanation. Thanks

    Hi,
    Jon gave most fastest way calculation done in your head to come up with answer of network ID , 1st host, last host-, hosts range , and broadcast address of specific host.
    Would like to throw additional info that will definately help you understand the sequence involved in the process. First you have to understand few simple things things that may look hard at first glance in order to make this process seemless as well as done in your head, understanding it makes things easier than memorizing things I guess.
    First thing is to understand the binary system involved in IPv4, which Im sure you already know that it is composed of 4 octets, each of 8 bit equaling a total of 32 bits.
    so three basic components you need to know by heart and comprehend are these.
    When you understand the esence of this you will be a pro in subneting any class network in your head.
    The Rule number 1 is = State away from calculators, you may use it only to confirm your answer , but do the process in your head.
    Second- = Understand IPv4 Class networks and their default classful mask - This will help you in indentifying what class network you are face with when presented with a host regardless of its mask, in the case of (supperneting).
    1-126 Class A Default mask /8
    128-191 Class B Default mask /16
    192-223 Class C default mask /24
    224-239 Class D Multicast reserved
    240-255 Class E experimental
    Third = Understand and know the binary value of a 32 bit address in IPv4.
    You must understand and know the binary value of an octect which is:
    128 64 32 16 8 4 2 1
    so in your example of 172.27.205.91/21 you know that 172 falls under Class B network and a class B network uses default mask of /16 bit which is 255.255.0.0 but 172,27.205.91 uses a /21 bit mask, so knowing the binary value of an octet seen in 128 64 32 16 8 4 2 1, you count from left to right 5 positions from the 3rd octect of the mask, that is 255.255.0.0 is 16 bits which is default of class B then the 3rd octect binary value count 5 (128 64 32 16 8) 4 2 1, in the parenthesis you have 5 bits which will make a total of 21 bits mask, up to here the 5th position ends in 8, remembering that 8 will be the key number because that will be your increment figure of networks within 172.27.0.0. So far so good right?
    Now, say that 172.27.205.91 had a /19 bit mask instead of /21, then you do the same principle as before , this is still a class B network, which you now know its default classful mask is 255.255.0.0,then on the 3rd octet of the mask you count from left to right in this case of /19 will be 3 bit positions from 3rd octect, 255.255.0.0 is 16 bit mask, 3rd octet binary value again is (128 64 32) 16 8 4 2 1, again, in
    parenthesis you have counted 3 bit position from left to right which will come to a total of 19 bits including the (255.255 -16-bits), that will bring you to 255.255.224.0 , now a key to calculate the mask is easy, simply add 128 + 64 + 32 = 224
    here you have /19 - in example above with binary value bit counting 3 positions it ends in (32), here the 32 will be the figure to increment to come up with networks incrementing by 32
    172.27.0.0
    172.27.32.0
    172.27.64.0
    172.27.96.0
    172.27.128.0
    172.27.160.0
    172.27.192.0 -----> here you stop because 172.27.205.91 host falls here
    172.27.224.0
    etc..
    so you have 172.27.192.0 as the network ID, 172.27.192.1 as the first host, for broadcast address simply substract one from the 3rd octect of the next network of 172.27.224.0 which is 172.27.223.255. So the broadcast address of 172.27.205.91/19 is 172.27.223.255, then substract one from the 255 broadcast address to come up with the last host address which is 172.27.223.254.
    Hope this helps, again, Jon provided the most fastest way calculation.
    Regards

  • My "airport has the self assigned IP address and will not be able to connect to the internet"

    I have tried everything
    restarting the computer
    renewing the DHCP
    deleting the airport then adding a new airport
    turning off the airport and deleting the keychain access codes
    deleting the systems configuration folder
    I dont know what to do anymore. 
    I can't connect to my home router or my schools secured wifi, but i am able to connect to their public wifi.  my iphone connects just fine

    System preferences > Network > WiFi/Airport ..
    ( Assist me ) > ( Assistant )...
    and set it up from scratch, including a brand new "Location", not the default.
    You must close the window and save changes for them to take effect.
    If no joy, look at another one of you devices and post
    Router Address and
    IP Address and
    Subnet mask

  • WHERE DO I FIND THE IP ADDRESS AND CAN 2 PEOPLE HAVE THE SAME ADDRESS?

    MY EMAIL WAS HACKED INTO IN APRIL, I CHANGED PASSWORD, I PUT IN EXTRA SECURITY ON FACEBOOK WHO THEN SENT EMAIL EVERY TIME I SIGNED IN STATING MY SECURITY CODE, TIME, IP ADDRESS AND CITY AND STATE (CEDAR RAPIDS IA AND I AM FROM FAIRHOPE AL). I WAS HACKED INTO AGAIN IN MAY, CHANGED MY PASSWORD AGAIN AND DEACTIVATED MY FACE BOOK ACCT. SO FAR NO MORE HACKING INTO MY EMAIL. I VERIFIED MY IP ADDRESS AND WANT TO KNOW HOW SOMEONE ELSE FROM A DIFFERENT PART OF THE COUNTRY CAN HAVE THE SAME IP ADDRESS.

    You can find the IP address at:  Settings > General > Network tap your network (blue circle with > in it) and voila, your IP address Subnet Mask, Router, DNS, etc. will be listed.

  • Multiple routers and subnets - can't access across subnets

    Hey all, I'm having an issue with multiple routers and subnets on my FIOS connection. Here's how everything is setup:
    Primary router:
    ActionTec MI424WR Rev D (from Verizon)
    WAN IP: From ISP
    WAN NETMASK: From ISP
    LAN IP: 192.168.1.1LAN NETMASK: 255.255.255.0
    Secondary router (WAN connected to ActionTec LAN):
    Belkin N750 gigabit w/ 802.11n
    WAN IP: 192.168.1.2
    WAN NETMASK: 255.255.255.0
    LAN IP: 192.168.2.1
    LAN NETMASK: 255.255.255.0
    With this setup, I have the secondary router's WAN port connected to a LAN port on the primary router. Each are broadcasting an SSID and each are running DHCP to assign address to their respective subnets. Everything was well and good, except that I could reach 192.168.1.* systems from 192.168.2.*, but not vice versa -- anything connected to the Primary router was blind to systems connected to Secondary. Also, I could not ping anything on .2 from .1.
    So, I added the following static route to the primary router:
    DESTINATION: 192.168.2.0
    NETMASK: 255.255.255.0
    GATEWAY: 192.168.1.2
    Once this was added to the router, I could ping everything, so that was good. However, even though .1 can now ping .2, I can't access certain things such as the web interface of my NAS (192.168.2.2). I can ping it, but accessing it in the browser from .1 doesn't work; however, accessing from .2 does work.
    I think the ActionTec router might be blocking it, but that's just a guess. The firewall on this thing has me thoroughly confused. Currently, I have 192.168.1.2 in the DMZ on the ActionTec, but that didn't make a difference. I've also completely disabled the firewall on the secondary Belkin router, but still nothing.
    Any help from the pros here? Much appreciated!
    Solved!
    Go to Solution.

    Ok, I figured it out and everything is now working. The issue appears to be that the ActionTec router doesn't recognize traffic from Subnet 1 to Subnet 2 as internal traffic -- it treats it as external traffic and closes it off. To fix this, it required some Advanced Firewall Filters that were far from unituitive and took a lot of testing to get it just right. If anyone runs into a similar situation in the future, here's a rundown of what I did to make it all work:
    Primary Router:
    ActionTec, MI424WR Rev D
    WAN IP/NETMASK:Assigned by ISP
    LAN IP/NETMASK:192.168.1.1 / 255.255.255.0
    Secondary Router:
    Belkin N750 Gigabit w/ 802.11n
    WAN IP/NETMASK:192.168.1.2 / 255.255.255.0
    LAN IP/NETMASK:192.168.2.1 / 255.255.255.0
    Plug Secondary router's WAN port into a LAN port on the Primary router.
    Setup Secondary router to have static LAN address (192.168.1.2)
    At this point, you should have 2 separate subnets: Subnet 1 (192.168.1.*) and Subnet 2 (192.168.2.*).
    Systems on both subnets should be able to reach the internet. Also, Subnet 2 should be able to ping and reach systems on Subnet 1; however, systems on Subnet 1 should not be able to ping or reach systems on Subnet 2. For this, we need to create a static route so Subnet 1 can reach Subnet 2.
    Create and apply the following static route in the Primary router:  (Advanced > Routing)
    RULE NAME:Network (Home/Office)
    DESTINATION:192.168.2.0(your secondary subnet)
    GATEWAY:192.168.1.2(secondary router's WAN IP)
    NETMASK:255.255.255.0
    METRIC:1
    The router now has a route between Subnet 1 (192.168.1.*) and Subnet 2 (192.168.2.*). You should be able to ping systems on Subnet 1 from 2, and ping systems on Subnet 2 from 1. You should not be able to access any systems, though -- the firewall is still blocking all but ping traffic from Subnet 1 to Subnet 2. We need to create some firewall rules to allow this communication.
    Make sure Primary firewall is set to at least typical/medium (Firewall Settings > General).
    We need to create some network objects to make it easier to manage the rules we'll create. Go to Advanced > Network Objects and do the following:
    1.Click Add. You are now on Edit Network Object screen. 
    2.Set Description to 'Subnet 1'.
    3.In Items section below, click Add.
    4.Set Network Object Type to 'IP Subnet'.
    5.Set Subnet IP Address to 192.168.1.0.
    6.Set Subnet Mask to 255.255.255.0.
    7.Click Apply. You are now back on Edit Network Object screen.
    8.Click Apply. You are now back on Network Objects Screen.
    9.Repeat the above steps again, but this time creating a second network object called 'Subnet 2':
    Nameubnet 2
    IP Subnet:192.168.2.0
    Subnet Mask:255.255.255.0
    Now we create the firewall rules. Go to Firewall Settings > Advanced Filtering.
    In the Inbound/Input rules section, click the Add link next to Network (Home/Office) Rules.
    Create the following Advanced Filter:
    SOURCE ADDRESSelect 'Subnet 1'
    DEST. ADDRESSelect 'Subnet 2'
    PROTOCOL:'Any'
    OPERATION:'Accept Packet'
    OCCUR:'Always'
    Click Apply. You will now be back on the Advanced Filtering page.
    In the Outbound rules section, click the Add link next to Network (Home/Office) Rules.
    Create the following Advanced Filter:
    SOURCE ADDRESSelect 'Subnet 1'
    DEST. ADDRESSelect 'Subnet 2'
    PROTOCOL:'Any'
    OPERATION:'Accept Packet'
    OCCUR:'Always'
    Click Apply. You will now be back on the Advanced Filtering page.
    Click Apply.
    You're all done. You should now have internet access on both subnets, be able to ping across subnets and also be able to access services across subnets (local webservers, SSH, telnet, mail, etc). You will not be able to see network file shares across subnets in Windows, however, as this requires a WINS server (which is well outside the scope of this post). For instance, I have a Western Digital NAS on the 192.168.2.0 subnet that I can access as \\Mybooklive\ from within Subnet 2; on Subnet 1, however, I have to access it by its IP \\192.168.2.10\. 

  • Batch file to query an IP address and amend it

    Iain Smart wrote:So a client can have an IP address from any of 4 subnets?Do you have routing between the various subnets? Otherwise how do the clients connect to other internal resources (server, printers etc) that may be on another subnet?It sounds like you need to have some form of failover at the router rather than switching IP address at the client.This way you can leave the internal IP range and the router handles the multiple connections.However, you can use this command to change the IP address (needs admin priviledges):
    Batchfilenetsh interface ip set address name=”Local Area Connection” static

    Hi Guys,Right, I need to create a batch file which will query the LAN IP address then display what connection it is connected to.So, at one of our sites we have multiple internet connections due to it being in the middle of nowhere and the internet connections are very unstable.We have 2 ADSL connections and 2 4G/3G/2G connections which are all on the same LAN but are seperated by different subnetsSo I need the script to check the IP address and display whether it is on Connection A, B, C or DI will then need the script to ask the user which connection they would like to be on and then it will change the IP to fit the criteria of the subnet they wantThe DNS addresses stay the sameOh and this script will be ran on many different PCs so it needs to check the Local Area Connection and amend it current IP. for example:192.168.3.1 -...
    This topic first appeared in the Spiceworks Community

  • Giving IP address and DCHP to aironet 1250

    hi,
    We need to give an ip address to 1250 just for the managemnt purpose ( similar to VLAN1 ip address given in case of L2 switches ). And then Aironet1250's gigbit ethernet will be connected to our Core L3 4507 swicth which has DHCP running. And will distribute the IP address to wireless clients. In this case how to configure an ip address and also have DHCP running. Management IP adress is not in the range of the DHCP pool. so in case any configuration is required on Aironet device we will connect a notebook with a same subnet ip address as that of Aiornet device , and then telnet / ssh to management IP of aironet devive.
    Any experience pls share.
    Any configuration link on cisco.com is appreciated.
    Thanks in advance.
    Subodh

    Aironet devices can not have a management IP address. Following links may help you
    http://www.cisco.com/en/US/docs/wireless/access_point/350/configuration/guide/ap350ch9.html
    http://www.cisco.com/en/US/docs/wireless/access_point/12.3_7_JA/configuration/guide/s37adm.html

  • HT4628 My Mac Air OSX10.8.5 won't connect to the internet as it says it has a self assigned IP address and thus cannot connect to the internet. I can only connect to a network by manually typing in the configuration specs. Please help.

    My mac air OSX10.8.5 won't connect to the internet. It says it has a 'self assigned IP address and therefore cannot connect to the internet'. Network diagnostics is unable to the solve the problem. It happened suddenly for no reason and now I cannot connect except by typing in the configuration settings manually. Please help me!

    Use the Airport Utility or log into your wireless device via http and ensure the DHCP/NAT service is enabled.  If accessing via HTTP, you will need to manually set an ip within your local subnet (eg: 192.168.0.x).

  • Change IP-number and Subnet-mask with LabView?

    To upgrade the software on a CRio-System, the user needs to change some settings in the TCP/IP-configuration.
    To simplify this task I think on a possiblity to do (and at the end redo) the changes in the TCP/IP-Configuration of the Windows PC.
    What I need is:
    - Change the IP-Adress (from "Obtain IP adress automatic" to IP xyz...)
    - Change subnet-mask
    - Redo this settings by saving an existing config or set to "Obtain IP adress automatic"
    Who knows if and how it's possible to do that in LabVIEW?
    Perhaps I have to call a script  /.bat-file?
    LabVIEW 6,7 and 8 available :-)

    Sreedhar T wrote:
    Hi, its a really interesting stuff to read. Did anyone try doing it ?
    One thing that I wanted to know was: How long does it take to do this ? Since Im using a time critical application, can this entire operation happen in 100 milli seconds ?
    Will be glad to hear from you.
    Regards
    Sreedhar
    I have used this for a program that needs to have a host IP address for High sped cameras. I have it change the IP address to the required address and change it back when I am done. Here is a very simple Labview version of this code with out the switch back.
    Tim
    Johnson Controls
    Holland Michigan
    Attachments:
    TCPIP Config Programically.vi ‏10 KB

  • I need the IP values and Subnet Mask which is given by the ISP for my jetpack so i can configure my smart tv

    i need the IP values and Subnet Mask which is given by the ISP for my jetpack so i can configure my smart tv

    Your public IP Address is provided by the ISP.  Your smart TV does not need to know this information unless you plan to host some kind of an application or service for folks on the internet through your TV.  It wouldn't work anyways since all Jetpacks sit behind a VZW NAT firewall and blocks hosting capabilities by default.
    What you more than likely are referring to is the Default Gateway and Subnet mask of the Local Area Network being hosted by your Jetpack.  By default these values should be something like 192.168.1.1 and 255.255.255.0.  You can confirm the DG and SM by connecting a computer to the Jetpack.  Every computer has a way to look up the networking information.  On a Windows OS you would open up a CMD window and type in "IPCONFIG".
    If you shoot us the model number of your Smart TV we may be able to look up a User Guide to confirm what kind of info is needed to connect to a wireless network.  Most of the time exchanging the IP information is done automatically during the connection process.  It would also be nice to know which Jetpack model you have so we can compare the User Guide for that device with your TV.

Maybe you are looking for