It is currently Fri Apr 16, 2021 1:16 pm


All times are UTC




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: BUG - allows invalid characters in dynmips device names
PostPosted: Tue Aug 19, 2014 6:24 pm 
Offline

Joined: Tue Jul 17, 2012 1:34 pm
Posts: 214
GNS3 Early Release (ER) version 1.0beta1 on linux.

There seems to be no sanity check for invalid characters in router hostname, "R1 (test)" for example.

This may not be a mistake, but you can name a dynamips router anything you'd like, and when you boot the router it will try to apply the invalid characters to the hostname and display errors.

-Jason



_________________
J.Neumann, GNS3 Contributor & Forum Moderator (Minion ID: sin.zx81.1981ad)
Author: Cisco Routers for Small Business (Apress)


Top
 Profile  
 
 Post subject: Re: BUG - allows invalid characters in dynmips device names
PostPosted: Tue Aug 19, 2014 6:39 pm 
Offline
Site Admin

Joined: Sat Oct 11, 2008 1:41 pm
Posts: 2668
Location: Canada
Hi Jason,

You are right, there is no sanity check. I did the exact same test and was able to start the router, the problem seems to occur within IOS only:

Code:
hostname R1 (test)
            ^
% Invalid input detected at '^' marker.


I will implement a sanity check soon. I am sure I could find the info myself but do you know what other characters are not supported by IOS?

Thanks,

_________________
Jeremy, GNS3 Programmer & Benevolent Dictator for Life.


Top
 Profile  
 
 Post subject: Re: BUG - allows invalid characters in dynmips device names
PostPosted: Tue Aug 19, 2014 9:23 pm 
Offline
Site Admin

Joined: Sat Oct 11, 2008 1:41 pm
Posts: 2668
Location: Canada
I've decided not being lazy and here is what I think is the answer:

Quote:
They must start with a letter, end with a letter or digit, and have as interior characters only letters, digits, and hyphens. Names must be 63 characters or fewer.


Cheers,

_________________
Jeremy, GNS3 Programmer & Benevolent Dictator for Life.


Top
 Profile  
 
 Post subject: Re: BUG - allows invalid characters in dynmips device names
PostPosted: Tue Aug 19, 2014 10:33 pm 
Offline
Site Admin

Joined: Sat Oct 11, 2008 1:41 pm
Posts: 2668
Location: Canada
Quote:
They must start with a letter, end with a letter or digit, and have as interior characters only letters, digits, and hyphens. Names must be 63 characters or fewer.


However, this doesn't seem to be exact anymore. I ran some tests on IOS and I was able to use _ and digits wherever I want.... Thanks Cisco!

_________________
Jeremy, GNS3 Programmer & Benevolent Dictator for Life.


Top
 Profile  
 
 Post subject: Re: BUG - allows invalid characters in dynmips device names
PostPosted: Tue Aug 19, 2014 10:51 pm 
Offline
Site Admin

Joined: Sat Oct 11, 2008 1:41 pm
Posts: 2668
Location: Canada
This should be fixed now. I only accept alphanumeric characters, underscores and hyphens for IOS and IOU.

_________________
Jeremy, GNS3 Programmer & Benevolent Dictator for Life.


Top
 Profile  
 
 Post subject: Re: BUG - allows invalid characters in dynmips device names
PostPosted: Wed Aug 20, 2014 5:30 pm 
Offline

Joined: Tue Jul 17, 2012 1:34 pm
Posts: 214
Great, that was fast! :D



_________________
J.Neumann, GNS3 Contributor & Forum Moderator (Minion ID: sin.zx81.1981ad)
Author: Cisco Routers for Small Business (Apress)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC


Who is online

Users browsing this forum: Bing [Bot] and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group

phpBB SEO