Job Recruitment Website - Immigration policy - What does onip mean in linux?

What does onip mean in linux?

Bogon is the host name.

Use the host name to view the current host name.

Modify HOSTNAME= in vi /etc/sysconfig/network.

Must be restarted to take effect.

Several solutions to the problem of changing Linux host name to bogon

When the host name of Linux is changed from @myhostname to @bogon, there will be a problem of accessing the network, which cannot be solved after restarting. After searching online for a long time, I found the following solutions, which are hereby recorded.

1. Add a host named bogon under linux with the name 127.0.0.2.

After using this method, the host name of bogon is resolved, and the host name used is still bogon, but the above warning box no longer appears when entering linux. This method is not recommended.

2. Use the hostname command.

[root@bogon ~]# hostname xg

[root@bogon ~]# Sue

[root@xg ~]# This is OK, but some linux applications may still not work properly.

This method can simply retrieve the host name you want.

3. Modify the configuration files of Linux hosts/etc/sysconfig/network and /etc/hosts.

1). Modify the host name in /etc/sysconfig/network.

[root @ bogon ~]# VI/etc/sys config/network

Network = Yes

HOSTNAME=xg // Change the hostname to xg here.

2). Modify the name in /etc/hosts.

[root@bogon ~]# vi /etc/hosts

127.0.0. 1 xg

3). There is no need to restart the host computer, and finally, it is executed under the terminal:

[root@bogon ~]# hostname xg // xg is the modified host name.

[root@xg ~]#

This method is the most fundamental solution.

4. let dns reparse.

You need to change the main dns to an address at will to save the settings, and then change back to the original ip to save the settings.

Log off the current user, and then log on again.

It is said that dns server will return the result bogon when it resolves the private address. Just change dns to resolve ip.

I tried, but personally I don't think this corner is necessary.

Remarks:

bogan【bog? b? ug? n]

Bogon refers to those addresses that should not appear in the internet routing table.

These addresses should include:

1, and the private address is 10, 172. 16-32, 192.438+068. .....

2. An address that has not been officially assigned.

Bogota definition:

Hypocrite

It's a fake IP address, yes

Public Internet claiming to come from an IP address area.

Space has been reserved, but has not been allocated or delegated by the Internet.

Number Assigned Authority (IANA) or authorized local Internet

Registry (RIR). Unassigned address space areas are called

Borgen space.

For example, the address of 49.0.0.0–49.255.255.255 has not been assigned. [ 1]

Bogota is different from the reserved private address range, such as 10.x.x.x and192.168.x.x.

These are reserved for private networks. [2]

many

Internet service providers and end-user firewalls filter and block bogons because they have

Not legally used, usually by accident or malice.

Wrong configuration. You can do this by using router ACL or

BGPblackholing。

Today is bogon's IP address, but it may not be bogon.

Tomorrow. IANA and other registries often allocate new address spaces.

To the internet service provider. Notifications of new tasks are usually posted on

Mailing lists of network operators (such as NANOG) to ensure that operators

The opportunity to delete bogon filtering address has become

Legal.

IANA maintains a list of allocated and reserved IPv4 network blocks. [ 1]

In addition to the above definition, there is another definition:

Pogon is a combination of Martians (that is, the names of private addresses and reserved addresses, see RFC 19 18 and RFC5735 for details) and IANA, and is not assigned to RIR.

This is an IPV4 allocation list maintained by IANA.

You can see here that 005/8 is an unassigned address, which is bogon range.

At the same time, there is a concept called Fullbogons, which is defined in a larger scope than bogon, and refers to those addresses assigned to RIR by IANA, but these addresses are not assigned to ISPs or end users.

So bongon is useless, so you need to set ACL on the route or do BGP black hole filtering.

So, what happened when my host name was changed to bogon? What should I do?

It may be that bogon was not filtered when DNS reversely parsed IP, so the IP in the intranet was reversely parsed into bogon.

Therefore, one of the solutions is to replace DNS with DNS that filters bongon.