Why assign IP addresses to router/switch interfaces?

I get why I would ever want to assign a IP address to a router or switch, for remote login and IP for hosts to reach it. But why assign IP addresses to the interfaces? Is it so the router/switch knows which port to send the packet out? Route summation? But I thought they do that through the routing table, like " that address is out this port".
So why would we ever need to assign IP addresses to specific port interfaces?

Disclaimer
The Author of this posting offers the information contained within this posting without consideration and with the reader's understanding that there's no implied or expressed suitability or fitness for any purpose. Information provided is for informational purposes only and should not be construed as rendering professional advice of any kind. Usage of this posting's information is solely at reader's own risk.
Liability Disclaimer
In no event shall Author be liable for any damages whatsoever (including, without limitation, damages for loss of use, data or profit) arising out of the use or inability to use the posting's information even if Author has been advised of the possibility of such damage.
Posting
You normally assign IP addresses to L3 interfaces so other L3 devices have an IP address to forward traffic to.  (L2 IP address are generally only used for management.)
Suppose you had Host (192.168.1.5/24) <> R1 <> R2 <> (192.168.2.8/24) Host, and you want the two hosts to intercommunicate.  How would you get this to work?
You might started by providing interface IPs on the router interfaces facing the host, such as:
Host (192.168.1.5/24) <> (192.168.1.1/24) R1 <> R2 (192.168.2.1/24) <> (192.168.2.8/24) Host
You then configure "gateway" IPs on both hosts:
Host (192.168.1.5/24 - GW 192.168.1.1) <> (192.168.1.1/24) R1 <> R2 (192.168.2.1/24) <> (192.168.2.8/24 - GW 192.168.2.1) Host
Now each hosts "knows" to send all its off local subnet, traffic physically to the GW IP.  So, for example, if 192.168.1.5 want to sent to 192.168.2.8, it would forward the traffic to the GW IP, 192.168.1.1.  This is a example of why you want an IP on the router's L3 interface.
Next we want R1 to forward the packet to R2, but it too needs a "next hop" IP address, so we assign addresses on the link between the two router, e.g.:
Host (192.168.1.5/24 - GW 192.168.1.1) <> (192.168.1.1/24) R1 (192.168.3.1/24) <> (192.168.3.2/24) R2 (192.168.2.1/24) <> (192.168.2.8/24 - GW 192.168.2.1) Host
R1 then needs to "know" where to send packets with an destination IP network of 192.168.2.0/24, in this case, it need to "know" to send the to IP 192.168.3.2.  When it does, R2, having and interface with 192.168.2.1, will also know 192.168.2.8 can be reached by sending the packet out that interface.
Hopefully, the above will show why IP addresses on router L3 interfaces are needed.
BTW, normally for the R1<>R2 link, you would assign a /30 or /31 network or you might use "unnumbered" interfaces (which "borrow" IPs from another interface).

Similar Messages

  • Assigning IP address to Catalyst1900 switch

    Hi,
    One of ourcustomer have a Catalyst 1900 switch, but unfortunately they lost console cable. Is there any way around that we can still assign an IP Address to the switch as we also intending to manage thru web browser only.
    regards
    Vani Prasanna

    Hi,
    I think your a bit stuffed really
    If you can connect the switch to an existing cluster you can connect to it via the cluster IP address however you a) need a cluster and b) need to be able to configure the switch to be in a cluster.
    The other option that's worth exploring, as its a 1900 series which i don't think are made any more, it may allready have an IP address on it.
    You could connect it to another switch and do a "show cdp neighbor detail" which (if configured) will show you the IP of the switch, then you can configure a client with an IP in the same range and telnet on to the switch (if you know the password etc etc)
    Also watch out if you are using VTP as connecting the 1900 switch to your production LAN (if its a VTP server) could blow away all your VLANS...i think :)
    Good luck
    Paddy

  • Stopping MAC addresses on 3560 switch interfaces

    Hi,
    I would like to stop certain MAC addresses connecting to the network via a 3560 switch and have configured the config below for VLAN 1. All interfaces belong to VLAN 1. Can anyone tell me if this is the correct config or have I missed something?
    mac access-list extended Bad_Hosts
    permit host 0011.434c.d9bf any 0x806 0x0
    permit host 0011.434a.8026 any 0x806 0x0
    permit host 000b.5d2a.23e3 any 0x806 0x0
    permit host 000b.5d0e.4019 any 0x806 0x0
    vlan access-map MAC 10
    action drop
    match mac address Bad_Hosts
    vlan access-map MAC 20
    action forward
    vlan filter MAC vlan-list 1
    Regards
    Mark
    Network Specialist

    It look like, all the host 'll be reject.
    Try:
    mac access-list extended Bad_Hosts
    deny host 0011.434c.d9bf any 0x806 0x0
    deny host 0011.434a.8026 any 0x806 0x0
    deny host 000b.5d2a.23e3 any 0x806 0x0
    deny host 000b.5d0e.4019 any 0x806 0x0
    permit any any
    vlan access-map MAC 10
    match mac address Bad_Hosts
    action forward
    vlan access-map MAC 20
    action drop
    vlan filter MAC vlan-list 1
    Please, hope this help and rate this post.

  • Why does my Airport Express say "self assigned IP address"?  No IP address for the ethernet, and it is not connecting to my cable router any longer...

    Why does my Airport Express say "self assigned IP address"?  No IP address for the ethernet, and it is not connecting to my cable router any longer...

    Some cable providers.....like mine, a well known company......seem to take anywhere from a few moments to sometimes up to 30 minutes to allow their equipment back at the cable company to fully reset and issue a new fresh connection.
    So, it would not hurt to leave things powered down for 15-20 minutes or more when you perform the reset that John Galt suggests.

  • Subinterface FE router: assigning ip address

    Wnat to connect 1 FE port of switch with 1 FE port of router (2800). As we need different subnet for voice and data wanted to 'subinterface' FE port on router. But when tried to assign ip address on FE 0/0.1 I got '% Configuring IP routing on a LAN subinterface is only allowed if that
    subinterface is already configured as part of an IEEE 802.10, IEEE 802.1Q,
    or ISL vLAN.'. How do I get this fixed? First but interface (or subinteraces in a vlan?or..)
    Thanks

    Hi Peter,
    Before assigning the IP address you need to set the encapsulation on the interface and then it will take the IP address.
    Please give the command under the subinterface
    encapsulation dot1q 1 native ---> where 1 is the vlan number.
    subsequently for different vlans you need to repeat this command under diff subinterfaces.
    encapsulation dot1q 2--> for vlan 2
    encapsulation dot1q 3--> for vlan 3
    Native keyword you have to use for vlan1 only as that is the default native vlan on the switch.\
    http://www.cisco.com/en/US/tech/tk389/tk390/technologies_configuration_example09186a00800949fd.shtml
    HTH,
    -amit singh

  • Router interface up connected to switch interface down - but router status = up.

    Hi all,
    My router R2 fa0/0 and fa0/1 are connected to 2 L3 switches on their fa0/2 ports respectively.
    I have shutdown all interfaces on the L3 switches. but on my router, i still see
    R2#show ip int bri
    Interface                  IP-Address      OK? Method Status                Protocol
    FastEthernet0/0            192.168.3.1     YES manual up                    down
    FastEthernet0/1            192.168.4.1     YES manual up                    down
    ======================================================================
    I would have thought if i have shutdown the switches interfaces, the respective interfaces on the Router would be down too.
    Is it not the case ?
    Regards,
    Noob

    Hi KOH SZE JIE, 
    This is normal behavior; If you have an interface UP; the line protocol may go up and down. But the Status (of the interface) will not change unless you make a configuration change. 
    Please see below a breakdown of your "show ip int brief" 
    Method
    is set to 'Manual' This means you manually configured the interface from the CLI.
    Status
    is 'UP' This means the interface is up. Basically this means you did a "no shutdown" on the port. 
    There are three modes here 
    Down - The interface is shutdown (Default on most routers) 
    Administratively down - You have gone under the interface and issued a "shutdown" 
    UP - You have issued a "No shutdown" on the interface. 
    Protocol 
    Down - This means a routing protocol is not active on the interface. This makes sense as you have shutdown the remote end(in your case your L3 switch.
    I hope this helps.
    Kind Regards,
    Liam
    *** EDIT *** 
    After a bit of digging, I found the following Cisco document; this explains the entire show command more concisely then I could :)  
    http://www.cisco.com/c/en/us/td/docs/optical/cpt/r9_3/command/reference/cpt93_cr/cpt93_cr_chapter_01110.html 

  • EA2700 router not getting assigned IP address via DHCP

    I'm helping my mom (remotely) set up her new EA2700 router to replace her old Linksys WRT160N router.  It is currently connected to a Motorola 6121 cable modem.  She also has Charter cable modem service.  FYI, the WRT160N is currently working albeit it is dropping connections and losing connections from time to time.  That's why she purchased this new router.
    I'm trying to help her set it up manually.  Unfortunately, she does not have a laptop computer.  She does have an iPad and Android phone, but nothing that would allow her to connect a device with a CD to the router that would allow her to do a CD based setup.  Thus, we're trying to do a manual setup.
    She is able to login to the router using Safari by connecting to 192.168.1.1 so I think the basic stuff is set up properly and all the wires are connected properly.  She is able to get into the main setup page.  I've helped her compare the setup of the current (EA2700) router to her old WRT160N router - this took quite a while - and essentially everything is set up similarly between the old and new router.  Internet connection type is set to "Automatic Configuration - DHCP."  Unfortunately, the router doesn't seem to be able to get assigned an IP address from Charter.  When she goes to the Status page, no IP addresses are listed.  She has also clicked on both the release IP and renew IP buttons, both with no effect.  She has tried power cycling both the cable modem and router, but not luck.  What's going on?  I see another user may have a similar issue:
    http://homecommunity.cisco.com/t5/Wireless-Routers/EA2700-DHCP-reservations/m-p/561986?comm_cc=HSus&...
    What can we do to fix this issue?

    If mac clone is enabled, the address that it will clone is usually the mac address of the computer that can get online directly to the modem. Or it’s possible that the cable modem is only recognizing the MAC address of the old router. You may enabling MAC Address clone and clone the MAC address of the old router.

  • Airport has a self assigned IP address. Why and how can I fix it

    Airport has a self assigned IP address and can't connect to the internet. Why and how can I fix it?

    First thing you need I think is to get your iMac connected to the Internet.
    Shut down your iMac and you iPad. Then power off your router. Wait 30 seconds and power up the router.
    After the router indicates that it is connected to the Internet then start up your iMac and see if it connects. If the iMac connects to the Internet then your iPad should too.
    If this power up sequence doesn't work you'll have to dig into the router setup to make sure it is working properly.

  • Assigning multiple IP address to the same Interface in rc.conf

    Hi,
    Is there any way to assign multiple IP address to the same Interface in rc.conf ?
    Or else how is it done?
    Thanks
    --Siju

    Like oh so many things, IP aliasing is covered in the wiki.
    Or you can just add the commands to /etc/rc.local if you need to do it some other way.

  • Assign Company Address: Select this functionality within interface

    Hi Experts,
    I am creating BP and Relationships using IDOC.
    Everything is working fine using IDOC type BUPA_INBOUND_REL_SAVE_M02
    Now I require to Assign Company Address with the data from the file using either IDOC or any other method but during this processing only.
    This is a button on screen but I need to cater to this within the interface.
    Please can anyone suggest a Function Module/Class or anything that will help me do this.
    Kindly suggest,
    Taher

    Hi Ram,
    Please ask your functional folks to help ypu. For this go to SPRO transaction. Select SAP regerence IMG. Then navigate in this manner:
    General setting->Set countires->Define countires. Define your countires here. You can also find a node for Insert regions.
    Ask some one from functional team to assist you.
    Regards.
    Ruchit.

  • Linksys Router- Assign IP Address?

    I have a Linksys router with my Mac Pro. I have my mac pro wired into the router but it is a wireless router so there are other things on the router as well such as the Xbox. I have to have certain ports open for the Xbox to work and my torrent client to work as well. Sometimes the router auto assigns the IP to my computer and then I have to go into the router settings and change which IP has which ports open for it. Is there a way to assign my computer an IP so it gets the same IP every time and same with the Xbox?

    Open Network preferences click on the Advanced button then on the TCP/IP tab. Note the IP address assigned to your computer by the router, then change the TCP/IP IPv4 Configure drop down menu to DHCP with manual addressing. Then insert the IP address your router was using under the previous setting. Click on the Apply button. Use this IP address in your port forwarding configuration.

  • Why do I have a self assigned ip address

    trying to connect directly to my cable modem to run a direct speed test. But, when trying to connect I get the message, "you have a self assigned IP address".
    How do I change this?

    You cable modem is not providing a dhcp ip address to your computer for some reason. Maybe your ethernet cable is not working. maybe your cable modem needs to be power cycled when a new device is connected to it.
    I'd try power cycling the cable modem.

  • Problems using MBP as WiFi router for iPad2 (self-assigned IP address)

    H/W& S/W:
    MBP 15" (model early 2011), running Snow Leopard,
    iPad 2 WiFi only, 64Gb, iOS 4.3.4 (8K2).
    Scenario:
    I am in a location where there is no WiFi. MBP is connected via Ethernet to a DSL network, and has access to the Internet. I turn on Internet sharing, having set the following:
    "Share your connection from" set to "Ethernet" and
    "Share computers using Airport" ticked.
    Previously, I have then connected the iPad 2 via WiFi with the WiFi network created on the MBP, and succesfully worked from the iPad on the Internet (email, browsing, app downloads, ...).
    Problem:
    Now, however, the iPad connects to the MBP's WiFi network, but when I attempt to access the Internet, I get such messages on the iPad  as "Safari is not connected to the Internet" or "Cannot Get Mail ...".
    On investigation, I see that Airport on the MBP is in a YELLOW status: Status On, with the note "Airport has the self-assigned IP address 169.X.y.z, and will not be able to connect to the Internet".
    On the iPad, the WiFi network shows the IP address 169.X.a.b (with a subnet mask (255.255.0.0).
    I have tried:
    1. turning Airport off and on
    2. renewing the DHCP lease on the MBP
    2. configuring IPv4 address in the MBP manually
    3. configuring the IP address manually on the iPad (not expecting anything with this, but ....)
    4. fixed Permissions" on the MBP disk (suggested on another support community web site)
    But none of these make any difference.
    Message was edited by: WKH
    forgot to mention: Firewall is disabled on the MBP.

    Hello,
    I've had the exact same problem on my macbook and it really **** me off ! I tried all of the solutions written in this forum and none worked for me ! I was really starting get mad especially that my macbook is quite new...
    And the thing is i have no Apple Store where i live which is a pretty F***g problem so I had to wait for vacations to go to france where I took my macbook for check at the apple store...
    I just came back right now and my wifi works till now a least far much better than before...The guy was really nice he checked everything and he tried all the solutions on this forum too..Finally he tried to boot from one of '' apple's '' usb that has suberb booting systems...And it worked so finally he re-installed 10.6.5 as it was '' corrupted '' with wifi bugs ! For that he needed to delete everything on my macbook ! GREAT !
    After 15 minutes the installation was done and it started like when you buy a new macbook !
    And VOILA the Wifi came back to normal !
    Hope this helps...
    If you have this problem go and see Apple Store or re-install yourself 10.6.5 !
    Thanks !

  • Self assigned IP Address, wireless doesn't work

    After upgrading to Leopard I keep getting "AirPort has a self-assigned IP address and may not be able to connect to the Internet." when I try to connect to the wireless network. Thus, wifi does not work at all. I've researched it best I can and it seems to be a problem with the router assigning an IP address to the mac, but why didn't this happen in Tiger? However if I play around with it for awhile it will randomly start working, but the same method doesn't fix it everytime. It also works fine in bootcamp. If I physically plug into the router, it works fine. This problem didn't exist in Tiger at all.
    Message was edited by: SuperDupe453

    Follow-up:
    On the two laptops, I finally managed to get on line by switching to a different wireless access point, on a different modem. I surmise that the communication between the Macbook DHCP client and the modem/router's DHCP server is less than 100% effective. Looking at the modem/router, I could see that all of the Macs had active connections. But, instead of showing the names of the Macs, the page showed a star (*) for each Mac. I had to compare Mac addresses to verify the connections. The MAC address, of course, is hard-wired into the computer's network interface. It appears that either the DHCP client didn't know what question to ask when it broadcast for an IP address, or it couldn't interpret the answer. Except in the case of the iMac, which worked perfectly.
    I upgraded the MacPro last, since it is my primary machine. Same story--connection with self-assigned address, which is useless. However, this time, having nothing left to lose, I restarted the modem/router, which presumably dumped any inactive connections and issued new DHCP leases.
    However, I do have a few words for the Apple GENIUSES! The Leopard network preferences page puts me in mind of a maintenance free battery. A few of the older folks will remember when you bought a car battery that had to be filled with distilled water to reconstitute the electrolyte. Then, periodically, you check the level of the liquid in the battery, and added distilled water when required. Adding water was required on occasion because some of the water would boil off under certain conditions. Then, we got the maintenance free battery, which is virtually identical to the older battery design, except that you don't have to perform the maintenance of replenishing the water. It turns out, however, that maintenance free batteries do vent on occasion, and should have water added. But, you can't add water because the battery is sealed. So, the difference between conventional and maintenance free is not that the maintenance free battery doesn't need maintenance, it is that you can't perform the maintenance without voiding the warranty.
    The Leopard network preference page won't let you set the parameters that could restore a connection. If the DHCP client doesn't work automatically, you're stuck.

  • Why AP Management Address is Untagged

    Anyone want to venture a guess as to why Cisco doesn't allow a management address on an AP on a tagged interface?  I believe that it has to do with 'bridge 1 route ip' and that if you were to place a management address on another VLAN you'd be restricted by the 'bridge 1 route ip' command to only being able to manage it from that same VLAN.  I don't think it's possible to change the route ip statement to any other VLAN.  I'm in an environment where I have autonomous APs and VLAN 1 is shut down.  Need to manage the APs and can't think of a way to do it.
    Regards,
    Scott

    The 1 in the bridge 1 route ip command is a bridge group number not a VLAN ID.
    The BVI 1 interface is configured with the management IP address of the AP on bridge group 1 not VLAN 1.
    Since the BVI1 interface is assigned to bridge group 1, management of the AP must be on bridge group 1.
    The Ethernet Interface that bridge group 1 is configured on determines the VLAN using the encapsulation dot1q command.
    The necessary VLAN tagging takes place by adding the native keyword option to the encapsulation dot1q statement on the Ethernet sub-interface for the management VLAN.
    The switch port that the AP is connected to must be configured with this native VLAN.
    The VLAN can be changed to any VLAN ID but not the bridge group which must be bridge group 1.
    Here is an example for using VLAN 99 for management of the AP.
    AP
    interface FastEthernet0.99
    bridge group 1
    encapsulation dot1Q 99 native
    interface BVI1
    Ip address 10.10.10.10 255.255.255.0
    SWITCH
    Interface fa0/1
    switchport mode trunk
    switchport trunk encapsulation dot1q
    switchport trunk native vlan 99
    switchport trunk allowed vlan 10,20,99
    The switch defaults to switch port trunk native VLAN 1 which is not shown in the switch configuration.
    The VLAN 10 and 20 in the switchport trunk allowed vlan command are for two wireless SSIDs configured on the AP.
    Sent from Cisco Technical Support iPad App

Maybe you are looking for

  • GL Account Mapping After Upgradation

    Hi Friends, My requirement is as fallows anybody give some suggestion on this how to solve this issue: When I have decided to shift the Fiscal year from mid calendar year to year end for AE, it was decided that we need to do a new implementation inst

  • Finder slow to show items in column, icon views (OK in list, cover flow)

    I'm seeing new perplexing slow behavior on our three-month old iMac running 10.5.5: when in column view and selecting (or in icon view and double-clicking) a folder, there is an initial five-second lag before items will appear in the next column or w

  • IDOC ERROR(URGENT)

    Hi Guru's I have an idoc issue.. There is an error 'Item categoy not maintained'. Messa type is YWHSCN I am unaware of this msg type.. but i guess it is related to shipping.. How shoul i proceed now Do i require to see the shipping documnent.. if yes

  • Why can't I get a key for the Office Consumer Technical Preview now?

    So.. I tried for many times to get a key for my new office 16 technical preview but failed all the times. Now the office on my PC is running out of time. So I cannot use it now. How could I get a key to let it work?

  • Email Problems again on Second 3G

    It seems that this second phone is beginning to have the same problem as the first.... Now I have to restart twice a day instead of just in the morning before work. I now have to restart in the morning and evening before leaving from work to send and