Tip & How-To about Computers & Internet

OpenBSD Change Default Gateway

Add route from a command prompt: All You need to know is the network block you want to route, netmask for that block, and the IP address you want them routed to:
# route add 192.168.1.0 -netmask 255.255.255.0 192.168.1.254

Posted by on

Computers & Internet Logo

Related Topics:

Related Questions:

1 Answer

what is the default ip address for powerconnect 5212


You must assign an IP address to the switch to gain management access over the network. You may also need to a establish a default gateway between the switch and management stations that exist on another network segment. You can statically configure a specific IP address or direct the switch to obtain an address from a Boot Protocol (BOOTP) or Dynamic Host Configuration Protocol (DHCP) server when it is powered on. Valid IP addresses consist of four decimal numbers, 0 to 255, separated by periods. Anything outside this format is not accepted by the CLI program. notice.gif NOTICE: By default, the IP address is assigned to VLAN 1 through DHCP. If you select the bootp or dhcp option, IP is enabled but does not function until a BOOTP or DHCP reply has been received. Requests are broadcast periodically by the switch in an effort to learn its IP address. (BOOTP and DHCP values can include the IP address, default gateway, and subnet mask).
To display assigned IP settings using the CLI:
  1. From the Privileged Exec or Normal Exec level mode, type show ip interface and press <Enter>.

The assigned IP address and subnet mask displays.

  1. From the Privileged Exec mode, type show ip redirects to display the assigned gateway IP address. Press <Enter>.

The following example displays IP settings assigned by bootp or dhcp using the CLI.

Console#show ip interface

IP address and netmask: 10.1.0.1 255.255.252.0 on VLAN 1,

and address mode: User specified.

Console# show ip redirects

ip default gateway 10.1.0.254

Console#
Before you can assign a static IP address to the switch, you must obtain the following information from your network administrator:

  • IP address for the switch

  • Default gateway for the network

  • Network mask for the network

To assign a static IP address to the switch:
  1. From the Privileged Exec level global configuration mode prompt, type interface vlan 1 to access the interface-configuration mode. Press <Enter>.

  2. Type ip address ip-address netmask, where ip-address is the switch IP address and netmask is the network mask for the network.

  3. Type exit to return to the global configuration mode prompt. Press <Enter>.

  4. To set the IP address of the default gateway for the network to which the switch belongs, type ip default-gateway gateway, where gateway is the IP address of the default gateway. Press <Enter>.

  5. To save your configuration changes, type copy running-config startup-config and then press <Enter>.

notice.gif NOTICE: Only one VLAN can be assigned an IP address. If you assign an address to any other VLAN, the new address overrides the original IP address. The following example shows how to set a static IP address using the CLI.

Console(config)# interface vlan 1

Console(config-if)# ip address 192.168.1.5 255.255.255.0

Console(config-if)# exit

Console(config)# ip default-gateway 192.168.1.254

Console(config)#
To configure the switch for DHCP or BOOTP:

  1. From the Privileged Exec level global configuration mode prompt, type interface vlan 1 to access the interface-configuration mode. Press <Enter>.

  2. At the next prompt, use one of the following commands:

    • To obtain IP settings through DHCP, type ip address dhcp

    • To obtain IP setting through BOOTP, type ip address bootp

  3. Press <Enter>.

  4. To save your configuration changes, type copy running-config startup-config, and then press <Enter>.

Nov 26, 2012 | Computers & Internet

3 Answers

where do I find mac adress


The MAC address is either printed on the label on the bottom of the router OR it can be obtained from the router's configuration setting.

Apr 06, 2011 | Computers & Internet

1 Answer

how to config ip to nortel switch


on the Nortel Passport sw

vlan x
ip address x.x.x.x
ip address netmask x.x.x.x
on the interface

ip address x.x.x.x
ip address netmask x.x.x.x
on the Baystack

it smilar to the cisco sw

pls try and tell me

Dec 03, 2010 | Nortel 2526T-PWR Ethernet Routing Switch...

2 Answers

pix 515 E allow few websites only.


Do the nslookup for the three websites and write an access list to permit the traffic only to the said website ip addresses

Eg.

1. go to dos prompt

2. type "nslookup"

3. type "www.rediff.com

Note : You will get the ip address of the websites

4. Create an object group for these websites

5. Add ip addresses of the websites

6. create an access-control list element to permit the traffic from your circle office to this object group for port tcp 80 and 443

You are done

Mar 09, 2009 | Cisco PIX 515E Firewall

1 Answer

How can I reset it back to original configration


Hey Eric, I do use same Avaya switch at my lab at office. To me what you have to do is quite simple, first of all you have to get from your network administrator the following info: - Free IP to assign to the switch - Subnet - Gateway (If you ping such IP from a machine of same subnet, there will not be an answer). Then log as superuser (#) and do this: 1. Type set interface inband Replacing , and with the VLAN, IP address and netmask provided by your network administrator and press Enter. (for VLAN you can list them and decide which one to use, but normally you should use 1) 2. Type reset and press Enter to reset the stack. 3. After the Reset, perform login again as superuser.  4. Type set ip route , replacing and with the destination and gateway IP addresses. (If you want all packets not from your subnet to be send to the gateway, then use 0.0.0.0 as destination, list routes set on device for more info) 5. Press Enter to save the destination and gateway IP addresses. That's all. Your switch will be rechable from your same subnet and from other networks if your gateway is working properly and there's no other element blocking you the access. Good Luck!

Oct 23, 2006 | Lucent Cajun P333T Networking Switch

Not finding what you are looking for?

358 people viewed this tip

Ask a Question

Usually answered in minutes!

Top Computers & Internet Experts

Doctor PC
Doctor PC

Level 3 Expert

7733 Answers

kakima

Level 3 Expert

102366 Answers

David Payne
David Payne

Level 3 Expert

14161 Answers

Are you a Computer and Internet Expert? Answer questions, earn points and help others

Answer questions

Loading...