Got it

Client host names - like the "hosts" file - Swich S5720-28TP-LI-AC

Created: Jun 3, 2020 09:24:03Latest reply: Jun 3, 2020 12:21:04 166 7 0 0
  HiCoins as reward: 0 (problem unresolved)

Hi,

Is it possible to create a client names (or alias)  - hostname file - like the "hosts file" on Swich S5720-28TP-LI-AC?

eg.

192.168.1.1  gateway

192.168.1.2  client1

192.168.1.3  client2


or like this:


08:3d:88:56:23:42          gateway

08:3d:88:56:23:43            print1

08:3d:88:56:23:44            print1



I would like them to be visible in logs later ..


Ip adress are distributed via DHCP.  And I don't have my own DNS.

So far I've worked on a Linux server (and DHCP) and there is a "hosts" file that solves addresses. And now I was fascinated by this Huawei S5720-28TP-LI-AC and I would like to do it as the core of my network. That's why I'm looking for help, does this swich have such a possibility?

DHCP is on the same switch.

road-map


  • x
  • convention:

Featured Answers

Recommended answer

Admin Created Jun 3, 2020 12:21:04 Helpful(0) Helpful(0)

Hi user_3848329,
I'm sorry, I didn't get to know your request before you added new content.
You are right. The IP host command uses to configure static DNS entries.
However, you need to pay attention to the following points:
1. Each hostname can correspond to only one IP address. When a hostname is configured for multiple times, the last configured IP address takes effect. If multiple hostnames need to be resolved, repeat this step.
2. A maximum of 50 static DNS entries can be configured on the switch.
I hope it helps!
View more
  • x
  • convention:

obercik Created Jun 4, 2020 07:55:33
Hi - Thank you for your response.
you wrote: "A maximum of 50 static DNS entries can be configured on the switch"
I have several hundred hosts (clients) on the network! How else can this be resolved in this way? Would you need to set up a separate server, like netbios? I have no idea ... maybe I am making a mistake in thinking (in concept), but swich will act as a "core swich" on which I will implement subnets (and I do not have access to the router / firewall).  
All Answers
DDSN Admin Created Jun 3, 2020 09:33:34 Helpful(0) Helpful(0)

Hi user_3848329,
Please wait patiently. Our engineers are looking for answers to your questions.
View more
  • x
  • convention:

DDSN Admin Created Jun 3, 2020 09:38:56 Helpful(0) Helpful(0)

Hi user_3848329,

If you want to set the hostname of the device itself, you can use the sysname command. 

If you want to configure the hostname of the HCP/BOOTP client, run the dhcp client hostname command. If it's anything else, please let me know.

View more
  • x
  • convention:

obercik Created Jun 3, 2020 10:10:31
If you want to set the hostname of the device itself, you can use the sysname command. << NO

I like configure the hostname of the client hosts.
See - I added the description in the first post - what I mean.  
obercik Created Jun 3, 2020 09:45:48 Helpful(0) Helpful(0)

If you want to set the hostname of the device itself, you can use the sysname command. << NO

I like configure the hostname of the client hosts.
See - I added the description in the first post - what I mean.
View more
  • x
  • convention:

obercik Created Jun 3, 2020 11:42:39 Helpful(0) Helpful(0)

[SOLVED]

This is what I ment :)


command:

[SWICH]  ip host my_name_hostB 10.4.1.1


result:

[SWICH] display ip host

Host                             Age        Flags  Address

my_name_hostB            0          static 10.4.1.1


View more
  • x
  • convention:

DDSN Admin Created Jun 3, 2020 12:21:04 Helpful(0) Helpful(0)

Hi user_3848329,
I'm sorry, I didn't get to know your request before you added new content.
You are right. The IP host command uses to configure static DNS entries.
However, you need to pay attention to the following points:
1. Each hostname can correspond to only one IP address. When a hostname is configured for multiple times, the last configured IP address takes effect. If multiple hostnames need to be resolved, repeat this step.
2. A maximum of 50 static DNS entries can be configured on the switch.
I hope it helps!
View more
  • x
  • convention:

obercik Created Jun 4, 2020 07:55:33
Hi - Thank you for your response.
you wrote: "A maximum of 50 static DNS entries can be configured on the switch"
I have several hundred hosts (clients) on the network! How else can this be resolved in this way? Would you need to set up a separate server, like netbios? I have no idea ... maybe I am making a mistake in thinking (in concept), but swich will act as a "core swich" on which I will implement subnets (and I do not have access to the router / firewall).  

Comment

Comment
You need to log in to comment to the post Login | Register

Notice Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " Privacy."
If the attachment button is not available, update the Adobe Flash Player to the latest version!

My Followers

Login and enjoy all the member benefits

Login

Huawei Enterprise Support Community
Huawei Enterprise Support Community
Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.