Ignored in cp1525n escape sequence

I have a printer model cp1525n. I developed an application for system of vxWorks 5.5 using C/C++ code operating.

I am able to read a log file and issue prints on the printer through my application but becomes only black & white printing. I tried to use PCL (printer command language) escape sequences for color printing , but I still haven't methoeds black & white only

Printer responds, but the text of the of escape sequences is is printed, rather than remaining hidden and followed. The printed text follows, but is unaffected by the printer codes sent.

Escape sequences are inserted by the application and are not incorporated in the text file.

Printer configured on LAN and printing of orders are sent on a TCp/IP port

for example

Print ("\x1B [E);      to reset the printer

Print("\x1B[*r3U");                   to select the single color mode

Print("\x1B[*v1S");                  for printing out in a red color from now

printf ("everyone Helo");

output: E

* r3U

* v1S

Hello world

While blackcolor. all characters after the escape sequence ("\x1B []') are also getting printed. I read that these esape sequences are used to control the graphics appeal options in the printer. they are not supposed to have it printed.

do I have to follow some other steps too?

can anyone help?

concerning

Hitesh

Your escape sequences are almost certainly print because what you generate are sequences not valid.

Required sequences are shown here (with descriptions):

E            Printer Reset
*r3U         Simple Colour: 3-Plane RGB Palette
*v1S         Foreground Colour (index = 1)
Hello world

where:

represents the escape character (the decimal character code 27or hexadecimal 1B, or (for archaic use) octal 033).

Note that it does not '[] ' character!

There may be some confusion because with some applications, the escape character (a character of no graphic control code) is represented by something like "→ [" (depending on the application) in the same way that I represented using the "" place-holder in the above explanation.] "

Tags: HP Printers

Similar Questions

  • CP1525n: background color of text using PCL escape sequences

    Hi all

    I use the escape sequences PCL for printing the color of my text files.  I am able to print the plan text with color first.

    But now I want a background color for the different texts.

    Right now my code looks like this.

    < esc > E            Reset of the printer
    < esc > * r3U Simple colour: Palette RGB 3-plane
    < esc > * v1S foreground color (index = 1)
    Hello world

    Can someone help me with the escape sequence for the text background color. I use the simple color mode.

    Kind regards

    Hitesh

    A colored or shaded background (rather), you need to generate and set the background before writing the text.

    The background can be a raster-graphics image, or a filling of the rectangular areaor object HPGL/2, etc.

    Transparency of the Sourcesettings, transparency model and logical Operation (ROP) will affect how Source (what you are trying to add), Destination (which is already on the page) and Texture (combination of model and the current color ) are merged.

  • Ignored escape sequences

    Hi all:

    Printer HP Laserjet P1606dn of professional.

    Windows XP-(in a virtual window) in Windows 7.

    Try to print to a file .txt from a DOS box in XP using a print program (.exe), which sends sequences of HP PCL escape to the printer for police control, margins, pitch, etc.

    Printer responds, but the text of the escape sequence is printed, rather than remaining hidden and followed. The printed text follows, but is unaffected by the printer sent codes.

    Any ideas?

    "... printer has a USB connection..." »

    So, try the following:

    b implement a share name (preference of 8 characters or less) for the instance of Windows of the printer.

    (b) use the following command before the copy command:

    net use LPT1: \\pc-name\share-name

  • Escape sequence in the encrypted data

    Hello

    I'm trying to read data from a file and write it in another file after encrypting. I use 16-bit AESEncryption thing Key.Every is fine. I am able to encrypt the data correctly. But when the decryption is done BadPaddingException.I lil bit of research and find that it throws a Badpadding Exception, because there are a few escape sequences in the encrypted data, such as \n, \r, \t, \f etc..

    One thing is if I encrypt and decrypt the data immediately without saving it to file it works fine. {But when I encrypt the data and file writing and later, when I decrypt the data, then I'm the exception (as I am reading line by line) if suppose my encrypted data is like this b}@\n<> and when I write file o, b} @ will be written on one line and

    As a quick ground, I tried this if the encryypted data is less than the length of the block which is 16. then I read another line and merge these data of bytes in 2 lines, by adding a 0xA in the meantime and passing this to decipher. Its not working properly. But what of the escape of another sequence like \r,\t and all. Can someone suggest me please how to deal with this.

    Thanks in advance

    I solved this problem by myself. We cannot replace \n, \r with a different value for byte. Because all the values of bytes will come up some or another. For my needs, I should identify each row of data. So here I can't identify each line \n and \r are present in the encrypted data. And I can not put any value to indicate the end of the line. So after working wrapper, I got a medium and it is. I will read the data to the first file, encrypt the byte data and convert each byte in the byte array resulting from float and will write that float one by one in the new file. And when playing I've read a floating point number and converts it into bytes and added to DataBuffer.Here I can identify easily, end of the line by putting my own val (when writing to the file) is not in the range of bytes val (i.e.-128 to 127), so if the defined end of line happens I get the byte of the buffer array and and this byte array data and This process continues until the end of the file is reached. I don't know whether there is a correct approach. But at least it solved my problem. I give this info here because if another is facing the same situation, so at least they will have some info from my exp.

  • How to apply the escape sequence on the elements of input data?

    I have a script that uses the cfind() function to find an apostrophe (') in a string of DAL.
    This does not work as expected.

    The script went something like this:


    Input = Trim (srchdata("!//applicant/ApplicantName",1,100))

    #ApostrophePos = cfind(Input,"'",)


    This always returns 0, even when the name of the applicant has an apostrophe.

    Further investigation has shown that if the ApplicantName has the character to escape '& apos;', then the above function works.

    My data has "Bridie O'Reily" in the element ApplicantName, which was the issue.
    I changed it to "Bridie O & apos; Reily"and my cfind function work.


    Is there a way to retrieve the data and apply escape characters?

    For example, in this case, is it possible to convert "Bridie O'Reilly" to "Bridie O & apos; Reily"before you apply the cfind?

    It is very good. But what I was asking was if there was a function or something that will take the apostrophe (ASCII, code 39) from the XML and manipulate it in a script of DAL ' then apply cfind()

    Furthermore, I solved the initial problem using cfind (Input, char (39),).

  • Escape sequence does not

    Hello

    I was searching on google to escape one '&' in the value of a column in the insert statement.

    I tried the following.

    insert into TABLENAME values ('Hello', ' how------& you ');

    insert into TABLENAME values ('Hello', ' {how & you} "");



    Two of them did not work.
    Please tell me how can I do this insert statement works. because right now it continues to ask the value of 'you' as a result of the use of &. And I want to & to insert as bare text.

    Waiting for solutions from you.

    Thank you and best regards.

    Other than its use SET DEFINE OFF not there at - it no solution?

    You don't have another solution.

    This is only a problem when running SQL Plus. If you use this insert statement in a stored procedure, it will work correctly. PL/SQL cares '& '.

  • XMLTABLE - how to extract the value of the escape of a node as-is sequence

    Hello

    How can I me XMLTABLE leave the string value of a node like the version with escape sequence, rather than unescaping it?

    E.g.:
    select extract(xmltype('<root><test>&lt;unset&gt;</test></root>'), '/root/test/text()').getstringval() col1 from dual
    union all
    select col1
    from   xmltable('/root' passing xmltype('<root><test>&lt;unset&gt;</test></root>')
                    columns
                    col1 varchar2(20) path 'test');
    
    COL1                                                                            
    ---------------------
    &lt;unset&gt;                                                                   
    <unset>     
    NB. you will need to hit rΘpondre α and then quote my post to see the actual text; For the life of me, I can't get the forum properly displays things. In short, the string returned by the EXTRACT is escaped, while the XMLTABLE chain is unescaped.


    ETA: I looked through the standards xml from the list of available functions, and nothing seems relevant. {noformat} * scratches head * {noformat}

    Published by: Boneist on March 19, 2013 14:11

    You can emulate what do I EXTRACT / getStringVal () by projecting the node text() as XMLType and type-casting to VARCHAR2 in the SELECT clause:

    SQL> set scan off
    SQL>
    SQL> select cast(col1 as varchar2(20))
      2  from xmltable(
      3         '/root'
      4         passing xmltype('<unset>')
      5           columns col1 xmltype path 'test/text()'
      6       ) ;
    
    CAST(COL1ASVARCHAR2(20))
    ------------------------
    <unset>
     
    
  • Query of queries (QofQ) escaped character problem

    Hi all

    I am trying to run a query or queires (QofQ) and I do a LIKE comparison which finds support ([]) characters in the string, but ColdFusion ignores the media. How can I escape the character of support? So far, I couldn't escape the percentage based on the Docs sign live ColdFusion. The error message I get when I run the query below is:

    «"" "Invalid escape sequence.»»»" Pairs of valid sequence for this escape character are: "------%", or "\".

    This is the query:
    < cfquery dbtype = "query" name = "getLogs" >
    SELECT *.
    OF GetLogs
    WHERE Description LIKE '\[User:#UserID#\]% %' ESCAPE ' \'
    < / cfquery >

    Thanks for your help!

    What of it?

    WHERE my Description LIKE ' % [[] user: #UserID #] %'

  • Search by prefix in the escape character

    Hello experts,

    I'm using Oracle 11.2.03.  I have a clue of context and I want to be able to precede the generic search on escape characters.

    For example

    Select * from indvl where contains (indvl_nm, {abc} %)

    It only gives me abc and no abcd

    Note :{} charchter are also defined as the character of printjoin for my index

    As far as I know, you cannot combine a sentence with surrounded by {} with wildcard characters escape sequence.  However, you can combine the preface escape characters by------with wildcards.  I'm guessing you're automatically encompassing all with {and}.  I suggest that you not do this and escape individual characters instead.  For more convenience, you can write a function for this.  I presented a demo below with a few characters.  You can expand that to include more characters.  If there are a lot of things that you want to automatically escape, then you might want to use regexp_replace instead of replace it.

    [email protected] > create table indvl

    2 (indvl_nm varchar2 (30))

    3.

    Table created.

    [email protected] > insert all

    2 in indvl values ('abc')

    3 in indvl values ("abcd")

    4 in indvl values ('is 3')

    5 Select * of the double

    6.

    3 lines were created.

    [email protected] > start

    2 ctx_ddl.create_preference ('indvl_lex', 'basic_lexer');

    3 ctx_ddl.set_attribute ('indvl_lex', 'printjoins', ' {} = "");

    4 end;

    5.

    PL/SQL procedure successfully completed.

    [email protected] > create index indvl_idx

    2 on indvl (indvl_nm)

    3 indextype is ctxsys.context

    4 parameters ("lexer indvl_lex")

    5.

    The index is created.

    [email protected] > create or replace function format_search

    2 (p_string in varchar2)

    3. return varchar2

    4, as

    5 v_string varchar2 (4000): = p_string;

    6 start

    7 v_string: = replace (v_string, ' {',' \ {'}});

    8 v_string: = replace ({v_string, '} {','------} "");

    9 v_string: = replace (v_string, 'is', ' \ =');

    10 and so on for all other special characters

    11 return v_string;

    12 end format_search;

    13.

    The function is created.

    [email protected] > display errors

    No errors.

    [email protected] > select * from indvl where contains (indvl_nm, format_search ('abc %')) > 0))

    2.

    INDVL_NM

    ------------------------------

    ABC

    ABCD

    2 selected lines.

    [email protected] > select * from indvl where contains (indvl_nm, format_search ('== %')) > 0))

    2.

    INDVL_NM

    ------------------------------

    is 3

    1 selected line.

  • AJAX response - escaped html

    Hi people,

    I use the glow of the BBC to make an ajax post to a coldfusion page.

    It works fine apart from the display of the results in a div with all the HTML escaped.

    Anyone know how I can display the results as html?

    Is there a coldfusion tag / function that transforms special characters in html?

    Thank you very much

    [CODE]
    < div id = "alert" >

    & lt; table width = "100%" border = "0" cellspacing = "5" cellpadding = "5" & gt;
    & lt; TR & gt;
    & lt; TD & gt; Name & lt; table & gt;
    & lt; TD & gt; Lead & lt; table & gt;
    & lt; /TR & gt;

    & lt; TR & gt;
    & lt; TD & gt; & lt; table & gt;
    & lt; TD & gt; & lt; table & gt;
    & lt; /TR & gt;
    & lt; TR & gt;

    & lt; TD & gt; ABDUL KADIR & lt; table & gt;
    & lt; TD & gt; & lt; table & gt;
    & lt; /TR & gt;
    & lt; TR & gt;
    & lt; TD & gt; Abigail Clinton & lt; table & gt;

    & lt; TD & gt; & lt; table & gt;
    & lt; /TR & gt;
    & lt; TR & gt;
    & lt; TD & gt; Adrienne Parker & lt; table & gt;
    & lt; TD & gt; & lt; table & gt;

    & lt; /TR & gt;
    & lt; TR & gt;
    & lt; TD & gt; Aileen Makohon & lt; table & gt;
    & lt; TD & gt; & lt; table & gt;
    & lt; /TR & gt;

    & lt; TR & gt;
    & lt; TD & gt; Aimee Garbett & lt; table & gt;
    & lt; TD & gt; & lt; table & gt;
    & lt; /TR & gt;
    & lt; TR & gt;

    & lt; TD & gt; Alison Boughey & lt; table & gt;
    & lt; TD & gt; & lt; table & gt;
    & lt; /TR & gt;
    & lt; TR & gt;
    & lt; TD & gt; Alison Durman & lt; table & gt;

    & lt; TD & gt; & lt; table & gt;
    & lt; /TR & gt;
    & lt; TR & gt;
    & lt; TD & gt; Alison Hodgson & lt; table & gt;
    & lt; TD & gt; & lt; table & gt;

    & lt; /TR & gt;
    & lt; TR & gt;
    & lt; TD & gt; Amy Harrison & lt; table & gt;
    & lt; TD & gt; 1 & lt; table & gt;
    & lt; /TR & gt;

    & lt; TR & gt;
    & lt; TD & gt; Matthew Harris & lt; table & gt;
    & lt; TD & gt; 1 & lt; table & gt;
    & lt; /TR & gt;
    & lt; TR & gt;

    & lt; TD & gt; Clare O'Neill & lt; table & gt;
    & lt; TD & gt; 1 & lt; table & gt;
    & lt; /TR & gt;
    & lt; TR & gt;
    & lt; TD & gt; Lynne Thompson & lt; table & gt;

    & lt; TD & gt; 1 & lt; table & gt;
    & lt; /TR & gt;
    & lt; TR & gt;
    & lt; TD & gt; Clare O'Neill & lt; table & gt;
    & lt; TD & gt; 1 & lt; table & gt;

    & lt; /TR & gt;
    & lt; TR & gt;
    & lt; TD & gt; Amanda Harris & lt; table & gt;
    & lt; TD & gt; 0 & lt; table & gt;
    & lt; /TR & gt;

    & lt; TR & gt;
    & lt; TD & gt; Amanda Harris & lt; table & gt;
    & lt; TD & gt; 0 & lt; table & gt;
    & lt; /TR & gt;
    & lt; TR & gt;

    & lt; TD & gt; Amanda Harris & lt; table & gt;
    & lt; TD & gt; 0 & lt; table & gt;
    & lt; /TR & gt;
    & lt; TR & gt;
    & lt; TD & gt; Amanda Harris & lt; table & gt;

    & lt; TD & gt; 1 & lt; table & gt;
    & lt; /TR & gt;
    & lt; TR & gt;
    & lt; TD & gt; Amanda Harris & lt; table & gt;
    & lt; TD & gt; 1 & lt; table & gt;

    & lt; /TR & gt;
    & lt; TR & gt;
    & lt; TD & gt; Matthew Harris & lt; table & gt;
    & lt; TD & gt; 1 & lt; table & gt;
    & lt; /TR & gt;

    & lt; TR & gt;
    & lt; TD & gt; Matthew Harris & lt; table & gt;
    & lt; TD & gt; 1 & lt; table & gt;
    & lt; /TR & gt;
    & lt; TR & gt;

    & lt; TD & gt; Matthew Harris & lt; table & gt;
    & lt; TD & gt; 1 & lt; table & gt;
    & lt; /TR & gt;
    & lt; TR & gt;
    & lt; TD & gt; Matthew Harris & lt; table & gt;

    & lt; TD & gt; 1 & lt; table & gt;
    & lt; /TR & gt;
    & lt; TR & gt;
    & lt; TD & gt; Matthew Harris & lt; table & gt;
    & lt; TD & gt; 1 & lt; table & gt;

    & lt; /TR & gt;
    & lt; TR & gt;
    & lt; TD & gt; Matthew Harris & lt; table & gt;
    & lt; TD & gt; 1 & lt; table & gt;
    & lt; /TR & gt;

    & lt; TR & gt;
    & lt; TD & gt; Matthew Harris & lt; table & gt;
    & lt; TD & gt; 1 & lt; table & gt;
    & lt; /TR & gt;
    & lt; TR & gt;

    & lt; TD & gt; Matthew Harris & lt; table & gt;
    & lt; TD & gt; 1 & lt; table & gt;
    & lt; /TR & gt;
    & lt; TR & gt;
    & lt; TD & gt; Matthew Harris & lt; table & gt;

    & lt; TD & gt; 1 & lt; table & gt;
    & lt; /TR & gt;
    & lt; TR & gt;
    & lt; TD & gt; Amanda Harris & lt; table & gt;
    & lt; TD & gt; 0 & lt; table & gt;

    & lt; /TR & gt;
    & lt; TR & gt;
    & lt; TD & gt; Amy Harrison & lt; table & gt;
    & lt; TD & gt; 0 & lt; table & gt;
    & lt; /TR & gt;

    & lt; TR & gt;
    & lt; TD & gt; Amanda Harris & lt; table & gt;
    & lt; TD & gt; 0 & lt; table & gt;
    & lt; /TR & gt;
    & lt; TR & gt;

    & lt; TD & gt; Amanda Harris & lt; table & gt;
    & lt; TD & gt; 0 & lt; table & gt;
    & lt; /TR & gt;
    & lt; / table & gt; < / div >


    [/ CODE]

    Without drilling up to the problem - why the characters appear as escape sequence, I'll just answer the question:

    No, it doesn't have a function in ColdFusion that cancels the replacement of HTML strings with escaped. Someone has published such function on cflib.org.

    But unescaping is easy with the ReplaceList() function. Just the typical/probably escaped and strings unescaped in lists of arguments and you will have yourself a function.

    Something like this:

    public void HtmlUnescape (htmlstring)

    {

    Return replaceList (arguments.htmlstring,">, <",">)<>

    Add all other probable special characters and their encoding also to the list

    }

    < table width = "100%" border = "0" cellspacing = "5" cellpadding = "5" >

    original: #htmlcodeformat (test) #.


    unescaped: #htmlcodeformat (HtmlUnescape (test)) #.

    -Fernis

  • [JS CS3] RegExp, object that only contains a single bar backslash (how to escape)

    Hello

    I am trying to escape a backslash in my RegExp object, but I get a syntax error:

    myObj = new RegExp ("\");

    I tried phyton Style myObj = new RegExp ('-'); but not functioning properly.

    Thank you for any suspicion.

    Stefan

    Stefan,

    First, in your example of text you need to escape your backslash as well:

    myText = "this is a-search / replacement."

    You can see in these examples:

    Alert ('a\rb') print 'a' then 'b' on a new line. Alert ('a\\rb') print 'a\rb '.

    Another problem is that you use a regular expression as the subject of replacement (myWhit), but which must be a string. With these two things corrected, it works fine:

    main() function
    {
    var myText = "this is a-search / replacement."
    var myWhat = new RegExp ("\");
    var myWhatSearch = new RegExp ("\");
    var myWhit = "example";
    Alert (myReplaceExample (myText, myWhatSearch, myWhat, myWhit));
    Returns true;
    }

    As new RegExp ('-') can not be correct can be seen if you start with a literal regular expression, in which you would use a backslash escape sequence:

    myText = myText.replace (/ \ /, 'example')

    To use-in new construction (RegExp), you must place it in a string, and you must escape the two backslashes if you end up with "\".

    Peter

  • Bug trying to create the link with the Cyrillic characters in URL

    I'm transforming words in my text on the links, but with Cyrillic characters in their URL (such as https://en.wiktionary.org/wiki/ хорошо). The problem is that, depending on how create the link, the page refuses to accept the URL.

    It's my preferred method (which accepts not the Pages):

    1. Write or select the text to be transformed into link;
    2. Press cmd + k;
    3. Paste the URL (https://en.wiktionary.org/wiki/ хорошо) in the field;
    4. Hit enter or click out;
    5. When I check the link, it is www.apple.com.

    The strange is that other methods work very well.

    1 against nature (accepts Pages):

    1. Delete my word;
    2. In its place, paste the URL (https://en.wiktionary.org/wiki/ хорошо);
    3. Hit the space bar (a link is created automatically with the correct URL);
    4. Edit the link that is created and change its text;
    5. When I check the link, he kept correct.

    2 against nature (accepts Pages):

    1. Write or select the text to be transformed into link;
    2. Press cmd + k;
    3. Find a way to build a version with my URL (https://en.wiktionary.org/wiki/%D1%85%D0%BE%D1%80%D0%BE%D1%88%D0%BE) escape sequence;
    4. Paste the URL with escape sequence in link field;
    5. Hit enter or click out;
    6. When I check the link, ironically, is хорошо https://en.wiktionary.org/wiki/.

    To stretch more:

    1. Editing a link created successfully (with any success methods above);
    2. Changed its URL (from хорошо https://en.wiktionary.org/wiki/ to https://en.wiktionary.org/wiki/ плохо)
    3. Hit enter or click out;
    4. When I check the link, it's still хорошо https://en.wiktionary.org/wiki/;
    5. Finally edited and changed its URL still once, now remove the Cyrillic (https://en.wiktionary.org/wiki);
    6. Press enter, click out and he finally accepted the URL.

    Pages seems to be denying the creation of links with the URL that contains Cyrillic characters (only?), but exclusively through his little creation of link popup. I think it's a simple problem, but I'm sure it's very annoying.

    Everyone knows the same?

    Cyrillic characters in the range of table encoding UTF-8 code points u + 0400 - u + 04 FF are represented by two bytes. These people must be encoded as a percentage (read the two paragraphs of the current standard of article), as the Pages v5.6.2 will convert automatically URI to this encoding for you in the link Inspector. It will simply ignore what it considers incorrect URI links, they are Cyrillic, or even English.

    Use what is easier for you, and that Pages v5.6.2 accepts.

  • Various HP LaserJet: Printer Control Language (PCL) to help to increase the left margin


    Escape sequences the PCL (GUE, printer reset, set left offset, move the horizontal slider) in the separator page will be almost certainly ignored if (as is likely) your application is the use of standard Windows printer driver to generate the print job, because orders generated:

    • Will begin with another sequence of LSE, which resets the default power values (so too riding all the separator page settings).
    • Will contain the size of the page selection and definition of margin sequences as requested by the calling application.
  • HP laserjet 8150dn pcl and ps driver interpret different trays

    Hello

    I have the problem that we cannot yet use the ps driver because the page margins are ignored. So I replaced it with the pcl (no pcl6) printer driver. Then the page margins are now OK but the status bar, select is different.

    HP LaserJet 8150 Series PS

    15: Devising Park

    257: Tray 1

    258: Tray 1 (manual)

    259: tray 2

    260: tray 3

    261: tray 4

    262: Tray 5

    263: envelope

    263: printer Auto Select

    HP LaserJet 8150 Series PCL

    15: Devising Park

    257: 5 tray (500 sheets)

    258: tray 4 (500 sheets)

    259: tray 4 (2000 sheets)

    260: tray 3

    261: tray 2

    262: Tray 1

    4: manual feed (Tray 1)

    5: Umschlageinzug

    Is it possible to change that, like a registry entry?

    Thank you for your help.

    Cordially Jorge74

    >> ... We have a lot of word documents containing the parameters of the page.

    This is obviously the source of your problems; can you describe what you mean by that in detail?

    >> ... The PS driver interprets as the tray 2 and pcl as tray 4.

    Do you mean that your Word document (in this example) injects an escape sequence "paper source selection" (& l259H) in the print stream? Or something else?

    If this is the case, I can't imagine that a driver PostScript would accept such sequences; Once again, to provide more details.

    Or is it just that the values stored in Word documents are dependent on the active printer? (I don't know what the mechanism is that Word uses here).

    >> ... Unfortunately, the ps driver ignore the page margin.

    You will need to provide more information, although I can't advise much on issues of PS.

    >> ... Why are there differences?

    PCL has been defined by HP and PostScript by Adobe, as well as their "paper tray" codes were always likely to be different.

    That being said, LJ 8150 is likely to use a HP-written PostScript emulator in the firmware, so maybe they tried

    to align the identifier numbering more closely.

  • GNS3 3745 - no switch connectivity

    Hi all

    use GNS3, and than switch 16port module. I created an instance of PC and connection to f/0/0, which is a port of layer 3, I can connect through Layer 3 IPs. Then, I reconfigured and connected to the instance of PC through a layer 2 port f2/0 which is part of the switch 16port module. The 16 ports are by default in the vlan 1. I have assigned an IP address of 10.1.9.1/24 to the VLAN and gave the PC 10.1.9.2/24. I can't ping and I can not even ping 10.1.9.1, VLAN 1 IP. Did I miss something? Thank you.

    Mark Sargent

    Router #sh worm

    Cisco IOS Software, software 3700 (C3745-SPSERVICESK9-M), Version 12.4 (19), RELEASE SOFTWARE (fc1)

    Router #ping 10.1.9.1

    Type to abort escape sequence.

    Send 5, echoes ICMP 100 bytes to 10.1.9.1, time-out is 2 seconds:

    .....

    Success rate is 0% (0/5)

    Router #sh arp

    Protocol of age (min) address Addr Type Interface equipment

    Internet 10.1.9.1 - c402.2668.0000 ARPA Vlan1

    Router #sh ip int br

    Interface IP-Address OK? Method State Protocol

    FastEthernet0/0 unassigned YES manual up up

    Serial0/0 YES no not defined administratively down down

    FastEthernet0/1 no YES not defined administratively down down

    Serial0/1 no YES not defined administratively down down

    FastEthernet2/0 not assigned YES unset up towards the bottom

    FastEthernet2/1 no YES undefined upward to the bottom

    FastEthernet2/2 no YES undefined upward to the bottom

    FastEthernet2/3 no YES undefined upward to the bottom

    FastEthernet2/4 no YES undefined upward to the bottom

    FastEthernet2/5 no YES undefined upward to the bottom

    FastEthernet2/6 no YES undefined upward to the bottom

    FastEthernet2/7 no YES undefined upward to the bottom

    FastEthernet2/8 YES no not set up down

    FastEthernet2/9 no YES undefined upward to the bottom

    FastEthernet2/10 YES no undefined up down

    FastEthernet2/11 no undefined upward down YES

    FastEthernet2/12 no YES undefined upward to the bottom

    FastEthernet2/13 no undefined upward down YES

    FastEthernet2/14 no undefined upward down YES

    FastEthernet2/15 no YES undefined upward to the bottom

    Vlan1 10.1.9.1 YES manual downwards upwards

    Router #sh int f2/0 switchport

    Name: Fa2/0

    Switchport: enabled

    Administrative mode: static

    Operational mode: down

    Encapsulation of administrative circuits: dot1q

    Negotiating Trunking: disabled

    The VIRTUAL LAN access mode: (default) 1

    Native mode VLAN Trunking: 1 (default)

    VLAN Trunking enabled: ALL

    Assets of VLAN Trunking: no

    Priority for unmarked frames: 0

    Override the priority tag vlan: FALSE

    The voice of VLAN: no

    The unit trust: no

    Ports of status for the name of VLAN

    ---- -------------------------------- --------- -------------------------------

    1 active default 0/Fa2 Fa2/1, Fa2/2 Fa2/3

    FA2/4 Fa2/5, 6/Fa2 Fa2/7

    FA2/8, 9/Fa2, Fa2/10, Fa2/11

    FA2/12 Fa2/13, 14/Fa2 Fa2/15

    active by default fddi 1002

    assets of token-ring-default 1003

    1004 fddinet - default active

    1005 trnet - default active

    Network type VLAN SAID MTU Parent RingNo BridgeNo Men BrdgMode Trans1 Trans2

    ---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------

    1 100001 1500 enet - 1002 1003

    1002 101002 1500 fddi - 1 1003

    1003 b 1005 1500 101003 0-1 1002 srb

    1004 etnbdf 1500 101004 - 1 ibm - 0 0

    1005 trnet 101005 1500 - 1 ibm - 0 0

    Router #sh int vlan 1

    Vlan1 is up, line protocol is down

    Material is EtherSVI, the address is c402.2668.0000 (bia c402.2668.0000)

    The Internet address is 10.1.9.1/24

    MTU 1500 bytes, BW 100000 Kbit, DLY 100 usec,

    reliability 255/255, txload 1/255, rxload 1/255

    Encapsulation ARPA, loopback not set

    Type of the ARP: ARPA, ARP Timeout 04:00

    Last entry, never, never hang output

    Final cleaning of "show interface" counters never

    Input queue: 0/75/0/0 (size/max/drops/dumps); Total output drops: 0

    Strategy of queues: fifo

    Output queue: 0/40 (size/max)

    5 minute input rate 0 bps, 0 packets/s

    5 minute output rate 0 bps, 0 packets/s

    0 packets input, 0 bytes, 0 no buffer

    Received 0 broadcasts, 0 Runts, 0 Giants 0 shifters

    entry 0, 0 CRC errors, frame 0, saturation 0, 0 ignored

    12 bags of output, 890 bytes, 0 underruns

    output 0 error, 1 interface resets

    unknown protocol 0 drops

    output buffer, the output buffers 0 permuted 0 failures

    you need to change cable

    share this i must configure the interface in this way:

    int fa2/0

    SW mo VAC

    SW acc vla 1

    SH

    only HS

    end

    !

    WR

    !

    Take care

    Alessio

Maybe you are looking for