Skip to main content

Static IP address for asterix computer

 

IP4.ADDRESS[1]:                         192.168.1.226/24
IP4.GATEWAY:                            192.168.1.254
IP4.ROUTE[1]:                           dst = 192.168.1.0/24, nh = 0.0.0.0, mt >
IP4.ROUTE[2]:                           dst = 169.254.0.0/16, nh = 0.0.0.0, mt >
IP4.ROUTE[3]:                           dst = 0.0.0.0/0, nh = 192.168.1.254, mt>
IP4.DNS[1]:                             192.168.1.254
IP4.DOMAIN[1]:                          attlocal.net
IP6.ADDRESS[1]:                         2600:1700:474:c000:9b88:85f:2cd8:a037/64
IP6.ADDRESS[2]:                         2600:1700:474:c000:73be:3ec6:aef0:7123/>
IP6.ADDRESS[3]:                         2600:1700:474:c000:f303:c56b:ca15:5ddb/>
IP6.ADDRESS[4]:                         2600:1700:474:c000:6878:ba85:f244:ff5f/>
IP6.ADDRESS[5]:                         2600:1700:474:c000::1c/128
IP6.ADDRESS[6]:                         2600:1700:474:c000:ff1c:9a6a:784a:5ded/>
IP6.ADDRESS[7]:                         fe80::3dc7:2d58:9eb3:3a1c/64
IP6.GATEWAY:                            fe80::ae8f:a9ff:fe36:c132

ATT Internet

You can access your AT&T wireless gateway settings by typing 192.168.1.254 into your browser navigation bar. If you attempt to change a setting, you will be asked for your gateway's device access code. This code should be listed on the side or bottom(depending on how you have it orientated).

MAC Address

What is a MAC address (media access control address)?
A MAC address (media access control address) is a 12-digit hexadecimal number assigned to each device connected to the network. Primarily specified as a unique identifier during device manufacturing, the MAC address is often found on a device's network interface card (NIC). A MAC address is required when trying to locate a device or when performing diagnostics on a network device.

NAT

In the field of computer networking, NAT stands for Network Address Translation. In simplest terms, NAT allows many devices on a private network to share a single gateway to the internet. In turn, all of those devices will have the same public IP address—that of the gateway—and unique private IP addresses. These gateways are commonly found on wifi routers and some VPN services. For example, all of the devices connected to a NAT-enabled wifi router have different private IP addresses, but share the router’s public IP address.

FORUM ADVICE

For those that are not well versed in Linux, a step by step is as follows:

go to the local machine (computer running FreePBX/Asterisk)
login as: root
Password: (your password you used when you setup the software)
Type the next lines
cd /etc/sysconfig/network-scripts
sudo nano ifcfg-eth0
hit return
(use your arrow key to get where you need. Make sure NUMLOCK is on)
navigate to the line with BOOTPRONTO and go to the end of the line
Using backspace delete "dhcp"
Type in "none"
hit return
type the following lines;
NETMASK=255.255.255.0
IPADDR=192.168.1.3 (replace this with the IP address you want)
GATEWAY=192.168.1.1 (replace this with your router gateway address)
leave the rest as it is.
Hit the ctcl+ O keys (the letter not the number zero)
Hit enter again to save the file
hit ctcl+Z to exit the text editor
at the command prompt type the next line
service network restart

you should see the network card shut down and then restart, and all should be fine from here.

 

Ubuntu 18.04 and above use netplan to configure your network, and /etc/network/interfaces does not exist anymore. The netplan configuration file should be at /etc/netplan/.

Configuring an Interface with Static Network Settings Using ifcfg Files

For example, to configure an interface with static network settings using ifcfg files, for an interface with the name enp1s0, create a file with the name ifcfg-enp1s0 in the /etc/sysconfig/network-scripts/ directory, that contains:
  • For IPv4 configuration

    DEVICE=enp1s0
    BOOTPROTO=none
    ONBOOT=yes
    PREFIX=24
    IPADDR=10.0.1.27
    • For IPv6 configuration
      DEVICE=enp1s0
      BOOTPROTO=none
      ONBOOT=yes
      IPV6INIT=yes
      IPV6ADDR=2001:db8::2/48
      
      You do not need to specify the network or broadcast address as this is calculated automatically by ipcalc.
      For more IPv6 ifcfg configuration options, see nm-settings-ifcfg-rh(5) man page

hh